class Speckle::CLI::Controller
Public Class Methods
new(options)
click to toggle source
# File lib/speckle/cli/controller.rb, line 9 def initialize(options) @options = options end
Public Instance Methods
compile()
click to toggle source
# File lib/speckle/cli/controller.rb, line 52 def compile rake :compile_tests end
compile_and_test()
click to toggle source
# File lib/speckle/cli/controller.rb, line 56 def compile_and_test rake :compile_and_test end
rake(task)
click to toggle source
# File lib/speckle/cli/controller.rb, line 13 def rake(task) if @rake_app.nil? @rake_app = RakeApp.new(@options) end @rake_app.invoke_task(task) end
show_error(msg = @options.error)
click to toggle source
# File lib/speckle/cli/controller.rb, line 29 def show_error(msg = @options.error) puts "Error: #{msg}" puts show_help end
show_help()
click to toggle source
# File lib/speckle/cli/controller.rb, line 25 def show_help puts @options.opts end
show_invalid_option()
click to toggle source
# File lib/speckle/cli/controller.rb, line 36 def show_invalid_option show_error @options.error end
show_missing_args()
click to toggle source
# File lib/speckle/cli/controller.rb, line 40 def show_missing_args show_error @options.error end
show_no_spec_dir()
click to toggle source
# File lib/speckle/cli/controller.rb, line 48 def show_no_spec_dir show_error '"spec" directory not found' end
show_parser_error()
click to toggle source
# File lib/speckle/cli/controller.rb, line 44 def show_parser_error show_error @options.error end
show_version()
click to toggle source
# File lib/speckle/cli/controller.rb, line 21 def show_version puts VERSION end
test()
click to toggle source
# File lib/speckle/cli/controller.rb, line 60 def test rake :test end
watch()
click to toggle source
# File lib/speckle/cli/controller.rb, line 64 def watch puts '--- TODO ---' end