Class: Remote
- Inherits:
-
Object
- Object
- Remote
- Includes:
- ModeHelper, PuntfileHelper
- Defined in:
- lib/punt/remote.rb
Constant Summary
Constants included from PuntfileHelper
PuntfileHelper::SUPPORTED_PUNTFILES
Instance Method Summary collapse
Methods included from ModeHelper
Methods included from PuntfileHelper
Instance Method Details
#remote(env: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/punt/remote.rb', line 5 def remote(env: nil) environment = punt_environment(env: env) mode = get_mode(environment) mode_opts = mode.mode_opts(environment) puts "Fetching Version for #{env}" puts "" start_version = mode.download_versionfile("start", mode_opts: mode_opts) success_version = mode.download_versionfile("success", mode_opts: mode_opts) if (success_version == start_version) puts "Currently deployed version: #{success_version}" else puts "An aborted deployement was detected!" puts "\tLast Success: #{success_version}" puts "\tLast Attempt: #{start_version}" end end |