Class: Awskit::Gen::Toolkit::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/awskit/gen/toolkit/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Service

Returns a new instance of Service.



10
11
12
13
# File 'lib/awskit/gen/toolkit/service.rb', line 10

def initialize(options)
  self.options = options
  self.output_path = options[:path] || "./#{toolkit_name}"
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/awskit/gen/toolkit/service.rb', line 7

def options
  @options
end

#output_pathObject

Returns the value of attribute output_path.



8
9
10
# File 'lib/awskit/gen/toolkit/service.rb', line 8

def output_path
  @output_path
end

Instance Method Details

#genObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/awskit/gen/toolkit/service.rb', line 15

def gen
  gen_gem_dirs
  copy_static_files
  gen_toolkit_spec
  gen_bin
  gen_toolkit_main
  gen_cli
  gen_version
  gen_spec
end