class Souyuz::CommandsGenerator
Constants
- UI
Public Class Methods
start()
click to toggle source
# File lib/souyuz/commands_generator.rb, line 13 def self.start new.run end
Public Instance Methods
convert_options(options)
click to toggle source
# File lib/souyuz/commands_generator.rb, line 17 def convert_options(options) o = options.__hash__.dup o.delete(:verbose) o end
run()
click to toggle source
# File lib/souyuz/commands_generator.rb, line 23 def run program :version, Souyuz::VERSION program :description, Souyuz::DESCRIPTION program :help, "Author", "Felix Rudat <voydz@hotmail.com>" program :help_formatter, :compact global_option("--verbose") { $verbose = true } command :build do |c| c.syntax = "souyuz" c.description = "Just builds your app" c.action do |_args, options| config = FastlaneCore::Configuration.create(Souyuz::Options.available_options, convert_options(options)) Souyuz::Manager.new.work(config) end end default_command :build run! end