Class: YDD::Application

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ydd/application.rb

Constant Summary collapse

METHOD_OPTIONS =
{ :env => :string, :force => :boolean,
  :skip_schema => :boolean, :skip_data => :boolean,
  :tables => :string
}

Instance Method Summary collapse

Instance Method Details

#dump(dump_dir, app_dir = ".") ⇒ Object



14
15
16
17
18
# File 'lib/ydd/application.rb', line 14

def dump(dump_dir, app_dir = ".")
  setup! dump_dir, app_dir, :dump => true
  say "Starting dump..."
  YDD.dump @dump_dir
end

#load(dump_dir, app_dir = ".") ⇒ Object



22
23
24
25
26
# File 'lib/ydd/application.rb', line 22

def load(dump_dir, app_dir = ".")
  setup! dump_dir, app_dir, :dump => false
  say "Starting load..."
  YDD.load @dump_dir
end