Class: Boiler::Generator::Thrift

Inherits:
Base
  • Object
show all
Includes:
Boiler::GemRelated
Defined in:
lib/boiler/generator/thrift.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #options

Instance Method Summary collapse

Methods included from Boiler::GemRelated

#gem, #module, #server

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Boiler::Generator::Base

Instance Method Details

#executeObject



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(options, 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