class Tsuite::InstallGenerator
Public Class Methods
source_root()
click to toggle source
# File lib/generators/tsuite/install_generator.rb, line 6 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end
Public Instance Methods
install()
click to toggle source
Can add command line options defined like Thor:
class_option :extra, :desc => "Add extra stuff", :type => :boolean, :default => false
Reference these options later with options
# File lib/generators/tsuite/install_generator.rb, line 13 def install generate "rspec:install" generate "cucumber:install" template 'features/support/poltergeist.rb' end