Class: Boiler::Generator::Thrift
- Includes:
- Boiler::GemRelated
- Defined in:
- lib/boiler/generator/thrift.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Boiler::GemRelated
Methods inherited from Base
Constructor Details
This class inherits a constructor from Boiler::Generator::Base
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/boiler/generator/thrift.rb', line 5 def execute Gem.new(, arguments).execute @directory = @arguments.first @port = rand(8976) + 1024 relative_mkdir('bin') create_server create_client create_thrift_rb create_thrift_dir add_dependencies add_rake_target commit("Add thrift boilerplate (generated via `boiler thrift')") end |