Class: Swiftly::Clean
- Inherits:
-
Thor
- Object
- Thor
- Swiftly::Clean
show all
- Includes:
- Helpers, Thor::Actions
- Defined in:
- lib/swiftly/clean.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
23
24
25
26
27
28
29
30
31
|
# File 'lib/swiftly/clean.rb', line 23
def production( project_name )
settings = Swiftly::Project.settings( project_name )
verifiy_mina_credentials :production, settings, 'clean the'
mina 'deploy:cleanup', :production, project_name
end
|
#staging(project_name) ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/swiftly/clean.rb', line 11
def staging( project_name )
settings = Swiftly::Project.settings( project_name )
verifiy_mina_credentials :staging, settings, 'clean the'
mina 'deploy:cleanup', :staging, project_name
end
|