class Grably::GrablyCLI
Grably
CLI tool. Gives access to basic grably commands. Allowing to fetch basic infromation about build configuration, grably version and much more in the future.
Public Instance Methods
config()
click to toggle source
# File lib/grably/cli.rb, line 31 def config app = Rake.application ENV[Grably::ENV_PROFILE_KEY] = options[:profile] app.load_rakefile Grably.config.pretty_print end
exec(*tasks)
click to toggle source
# File lib/grably/cli.rb, line 17 def exec(*tasks) Rake.application.run(tasks + ["mp=#{options[:profile]}"]) end
tasks()
click to toggle source
# File lib/grably/cli.rb, line 23 def tasks args = %w(-T) args << '-A' if options[:all] Rake.application.run(args) end
version()
click to toggle source
# File lib/grably/cli.rb, line 39 def version puts "grably v. #{Grably.version}" exit 1 end