Top Level Namespace

Defined Under Namespace

Modules: RubyDeployer

Instance Method Summary collapse

Instance Method Details

#requirementsObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ruby_deployer/runner.rb', line 7

def requirements
  unless File.exists? './Deployfile'
    puts 'Cannot find a Deployfile'
    exit 1
  end
  unless File.exists? 'config/fog.yml'
    puts 'Cannot find a config/fog.yml file'
    exit 1
  end
  unless File.exists? 'config/aws_key'
    puts 'Cannot find a config/aws_key ssh key'
    exit 1
  end
end