Ravn::CLI::

Update module

Update Ravn repos

Public Instance Methods

describe_up_to_date( repo, branch )

Output a description of an up-to-date repo on the specified branch.

# File lib/ravn/cli/update.rb, line 62
def describe_up_to_date( repo, branch )
        Ravn::CLI.prompt.say "%s (%s): %s" % [
                repo,
                format_branchname(branch),
                success_string("Up to date.")
        ]
end
describe_updates( repo, branch, updates, commits )

Describe the given updates and commits for the specified repo and branch.

# File lib/ravn/cli/update.rb, line 72
def describe_updates( repo, branch, updates, commits )
        Ravn::CLI.prompt.say "%s (%s): updated (%s files updated)." %
                [ repo, format_branchname(branch), highlight_string(updates.size) ]

        if updates.any? {|fn| fn.index('Gemfile.devel') } ||
           updates.any? {|fn| fn.index('.gemspec') }
                Ravn::CLI.prompt.say "%s Dependencies may have changed." %
                        [ highlight_string('Note:') ]
        end

        if commits
                Ravn::CLI.prompt.indent do
                        commits.each {|line| Ravn::CLI.prompt.say(line) }
                end
                Ravn::CLI.prompt.say( hl('').color(:reset) )
        end
end