lib/vendorificator/cli.rb in vendorificator-0.3.0 vs lib/vendorificator/cli.rb in vendorificator-0.4.0
- old
+ new
@@ -83,14 +83,19 @@
status_line << " (updatable to #{updatable.name})"
end
end
say_status( mod.status.to_s.gsub('_', ' '), status_line,
- ( mod.status==:up_to_date ? :green : :yellow ) )
+ ( mod.status == :up_to_date ? :green : :yellow ) )
end
end
+ desc 'info MODULE', "Show module information"
+ def info(mod_name)
+ environment.info mod_name, options
+ end
+
desc :pull, "Pull upstream branches from a remote repository"
method_option :remote, :aliases => ['-r'], :default => nil
method_option :dry_run, :aliases => ['-n'], :default => false, :type => :boolean
def pull
environment.pull_all options
@@ -109,10 +114,10 @@
desc "git GIT_COMMAND [GIT_ARGS [...]]",
"Run a git command for specified modules"
long_desc <<EOF
Run a git command for specified modules. Within GIT_ARGS arguments,
you can use @MERGED@ and @PATH@ tags, which will be substituted with
- mo#dule's most recently merged revision and full path of its work
+ module's most recently merged revision and full path of its work
directory.
The 'diff' and 'log' commands are simple aliases for 'git' command.
Examples: