Module: RodeoClown
- Defined in:
- lib/rodeo_clown/deploy_strategy/mina.rb,
lib/rodeo_clown.rb,
lib/rodeo_clown/ec2.rb,
lib/rodeo_clown/elb.rb,
lib/rodeo_clown/deploy.rb,
lib/rodeo_clown/version.rb,
lib/rodeo_clown/deploy_strategy.rb,
lib/rodeo_clown/instance_builder.rb
Overview
I wanted to be special and use the Rakefile from Mina to deploy, alas shell scripts just work.
Defined Under Namespace
Modules: Deploy, DeployStrategy, InstanceBuilder Classes: EC2, ELB
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .configs(env = ENV["RACK_ENV"] || "development") ⇒ Object
-
.credentials ⇒ Object
Set aws credentials as environment variables Set aws credentials in the ~/.rodeo_clown.yml.
Class Method Details
.configs(env = ENV["RACK_ENV"] || "development") ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rodeo_clown.rb', line 6 def self.configs(env = ENV["RACK_ENV"] || "development") @configs ||= if File.exists?(file = File.(".") + "/.rodeo_clown.yml") YAML.load_file(file) elsif File.exists?(file = File.("~") + "/.rodeo_clown.yml") YAML.load_file(file) else {} end[env] end |
.credentials ⇒ Object
Set aws credentials as environment variables Set aws credentials in the ~/.rodeo_clown.yml
Just set your aws credentials
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/rodeo_clown.rb', line 21 def self.credentials @credentials ||= if ENV.key?("AWS_ACCESS_KEY") && ENV.key?("AWS_SECRET_ACCESS_KEY") { access_key_id: ENV["AWS_ACCESS_KEY"], secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], } elsif configs.key?("access_key_id") && configs.key?("secret_access_key") { access_key_id: configs["access_key_id"], secret_access_key: configs["secret_access_key"],} else raise "Please supply aws_access_key and Aws_secret_access_key" end end |