class GulpRails::CLI
Public Instance Methods
install(path = Dir.pwd)
click to toggle source
# File lib/gulp-rails/cli.rb, line 7 def install(path = Dir.pwd) validate_test_framework! generator = Generator.new generator.destination_root = File.expand_path(path) generator.options = options generator.settings = Settings.new(options) generator.invoke_all end
version()
click to toggle source
# File lib/gulp-rails/cli.rb, line 18 def version say VERSION end
Private Instance Methods
validate_test_framework!()
click to toggle source
# File lib/gulp-rails/cli.rb, line 23 def validate_test_framework! raise Error.new, 'invalid test framework. Can be qunit or jasmine' unless %w[qunit jasmine].include?(options['test_framework']) end