Class: Outbox::Generators::InstallGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/outbox/install/install_generator.rb

Constant Summary

Constants included from Helpers::Paas

Helpers::Paas::APP_MANIFEST_PATH

Constants included from Helpers::Initializer

Helpers::Initializer::OUTBOX_INITIALIZER_PATH

Constants included from Helpers::Config

Helpers::Config::CONFIG_PATH

Instance Method Summary collapse

Instance Method Details

#create_configObject



26
27
28
29
30
# File 'lib/generators/outbox/install/install_generator.rb', line 26

def create_config
  return if options[:skip_config]

  copy_file "outbox.yml", CONFIG_PATH
end

#create_initializerObject



20
21
22
23
24
# File 'lib/generators/outbox/install/install_generator.rb', line 20

def create_initializer
  return if options[:skip_initializer]

  copy_file "outbox.rb", OUTBOX_INITIALIZER_PATH
end

#create_outboxfileObject



14
15
16
17
18
# File 'lib/generators/outbox/install/install_generator.rb', line 14

def create_outboxfile
  return if options[:skip_outboxfile]

  copy_file "Outboxfile", "Outboxfile"
end