Class: Swiftly::SSH

Inherits:
Thor
  • Object
show all
Includes:
Helpers, Thor::Actions
Defined in:
lib/swiftly/ssh.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



24
25
26
27
28
29
30
31
32
# File 'lib/swiftly/ssh.rb', line 24

def production( project_name )

  settings = Swiftly::Project.settings( project_name )

  verifiy_mina_credentials :production, settings, 'ssh into the'

  mina 'ssh', :production, project_name

end

#staging(project_name) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/swiftly/ssh.rb', line 12

def staging( project_name )

  settings = Swiftly::Project.settings( project_name )

  verifiy_mina_credentials :staging, settings, 'ssh into the'

  mina 'ssh', :staging, project_name

end