Class: Heploy::Command::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/heploy/command/deploy.rb

Class Method Summary collapse

Class Method Details

.production(config, verbose) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/heploy/command/deploy.rb', line 17

def production(config, verbose)
  print "Server you're deploying to: "
  input = STDIN.gets.chomp
  if config.production_app_name == input
    deploy_to config.production_app_name,
              config.staging_branch,
              config.production_branch,
              config,
              verbose
  else
    abandon_ship "That is not the correct server."
  end
end

.staging(config, verbose) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/heploy/command/deploy.rb', line 9

def staging(config, verbose)
  deploy_to config.staging_app_name,
            config.development_branch,
            config.staging_branch,
            config,
            verbose
end