Class: SnapDeploy::Provider::Update
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- SnapDeploy::Provider::Update
- Includes:
- Rake::FileUtilsExt, CLI::DefaultOptions, Helpers
- Defined in:
- lib/snap_deploy/provider/update.rb
Instance Method Summary collapse
Methods included from Helpers
#access_key_id, #deploy_comment, #encoding_for, #error, #info, #log, #logger, #manually_triggered_by, #pipeline_counter, #pull_request_number, #secret_access_key, #short_commit, #snap_branch, #snap_commit, #snap_upstream_branch
Methods included from CLI::DefaultOptions
Instance Method Details
#execute ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/snap_deploy/provider/update.rb', line 17 def execute cd(File.dirname(__FILE__), :verbose => !!verbose?) do $stderr.puts "DEPRECATION WARNING: snap-deploy update will be deprecated soon" sh("sudo $(which git) fetch --all", :verbose => !!verbose?) sh("sudo $(which git) merge --ff-only origin/#{revision}", :verbose => !!verbose?) sh("cd \"$(git rev-parse --show-toplevel)\" && sudo ./install.sh") end end |