Class: Swiftly::Pull

Inherits:
Thor
  • Object
show all
Includes:
Helpers, Thor::Actions
Defined in:
lib/swiftly/pull.rb

Instance Method Summary collapse

Methods included from Helpers

#find_and_replace, #find_and_replace_all, #fix_serialization, #fix_text, #mina, #return_cmd, #swiftly_shell, #unzip, #update_setting, #verifiy_mina_credentials, #zip

Instance Method Details

#production(project_name) ⇒ Object



19
20
21
22
23
# File 'lib/swiftly/pull.rb', line 19

def production( project_name )

  Swiftly::Database.new( project_name ).sync( :production, :local )

end

#staging(project_name) ⇒ Object



11
12
13
14
15
# File 'lib/swiftly/pull.rb', line 11

def staging( project_name )

  Swiftly::Database.new( project_name ).sync( :staging, :local )

end