Class: Cloudruler::Generator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/cloudruler/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/cloudruler/generator.rb', line 7

def self.source_root
  File.expand_path('../generator/templates', __FILE__)
end

Instance Method Details

#bundleObject



15
16
17
18
19
# File 'lib/cloudruler/generator.rb', line 15

def bundle
  inside destination_root do
    run "bundle install"
  end
end

#copy_filesObject



11
12
13
# File 'lib/cloudruler/generator.rb', line 11

def copy_files
  directory '.'
end