Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a49e1a76a8
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (62 sloc) 1.599 kb
require 'yaml'
module Claws
module Command
class Initialize
def self.exec
h = {
'capistrano' => {
'home' => nil,
},
'ssh' => {
'user' => nil,
'identity' => nil,
},
'aws' => {
'access_key_id' => nil,
'secret_access_key' => nil,
},
'ec2' => {
'fields' => {
'id' => {
'width' => 10,
'title' => 'ID',
},
'name' => {
'width' => 20,
'title' => 'Name',
},
'status' => {
'width' => 8,
'title' => 'Status',
},
'dns_name' => {
'width' => 42,
'title' => 'DNS Name',
},
'instance_type' => {
'width' => 13,
'title' => 'Instance Type',
},
'public_ip_address' => {
'width' => 16,
'title' => 'Public IP',
},
'private_ip_address' => {
'width' => 16,
'title' => 'Private IP',
},
'tags' => {
'width' => 30,
'title' => 'tags',
},
},
}
}
conf = File.join(ENV['HOME'], '.claws.yml')
puts "Creating configuration file: #{conf}\n..."
File.open(conf, 'w').write(h.to_yaml)
puts 'Complete!'
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.