7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/cyborg/command/scaffold.rb', line 7
def initialize(options)
@cwd = Dir.pwd
@gem = underscorize(options[:name])
@engine = underscorize(options[:engine] || options[:name])
@namespace = @engine
@plugin_module = modulize @engine
puts "Creating new plugin #{@namespace}".bold
engine_site_scaffold
@gemspec_path = new_gem
@path = File.expand_path(File.dirname(@gemspec_path))
@spec = Gem::Specification.load(@gemspec_path)
bootstrap_gem
engine_app_scaffold
engine_copy
prepare_engine_site
install_npm_modules
update_git
end
|