Class: Trooper::Actions::MigrateDatabaseAction

Inherits:
Trooper::Action show all
Defined in:
lib/trooper/actions/migrate_database_action.rb

Instance Attribute Summary

Attributes inherited from Trooper::Action

#block, #commands, #config, #description, #name, #options

Instance Method Summary (collapse)

Methods inherited from Trooper::Action

#method_missing, #ok?, #prerequisite_call, #run, #type

Methods included from DSL::Bundler

#bundle_exec, #bundle_install, #rake

Methods included from DSL::Rake

#rake

Methods included from DSL::Folders

#cd, #create_folder, #create_folders, #delete_folder

Constructor Details

- (MigrateDatabaseAction) initialize(config = {})

A new instance of MigrateDatabaseAction



8
9
10
11
12
13
# File 'lib/trooper/actions/migrate_database_action.rb', line 8

def initialize(config = {})
  @name = :migrate_database
  @description = "Migrating database"
  @config = config
  @commands = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Trooper::Action

Instance Method Details

- (Object) call(configuration)



15
16
17
18
19
# File 'lib/trooper/actions/migrate_database_action.rb', line 15

def call(configuration)
  @config = configuration
  build_commands
  commands
end