ey_cloud_server 1.4.29 → 1.4.31

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,15 +1,13 @@
1
1
  source 'http://rubygems.org/'
2
- source 'http://geminst:hoa3laml@rubygems.engineyard.com/'
2
+ source 'http://geminst:hoa3laml@gems-internal.engineyard.com/'
3
3
 
4
4
  gemspec
5
5
 
6
- ## Group Dependencies
7
-
8
6
  group :test do
9
- gem 'rspec'
7
+ gem 'rspec', '~>1.1'
10
8
  gem 'randexp'
11
9
  gem 'cucumber'
12
- gem 'rcov'
10
+ gem 'rcov', '=0.8.6.ninjas'
13
11
  gem 'fakeweb', '1.2.6.ninjas'
14
12
  gem 'fakefs', '=0.0.1.ninjas'
15
13
  gem 'dbi'
data/Rakefile CHANGED
@@ -3,16 +3,27 @@ Bundler.setup(:runtime, :test)
3
3
  $:.unshift File.dirname(__FILE__) + '/lib'
4
4
  require File.dirname(__FILE__) + '/lib/ey-flex'
5
5
 
6
- require 'rspec/core/rake_task'
6
+ require 'spec/rake/spectask'
7
7
  desc "Run unit specifications"
8
- RSpec::Core::RakeTask.new do |t|
9
- t.pattern = 'spec/**/*_spec.rb'
10
- t.rspec_opts = %w(-fs --color --backtrace)
8
+ Spec::Rake::SpecTask.new do |t|
9
+ t.spec_opts << %w(-fs --color)
10
+ t.spec_opts << '--loadby' << 'random'
11
+ t.spec_files = Dir["spec/**/*_spec.rb"]
12
+
13
+ t.rcov = ENV['RCOV'] == "true"
14
+ t.rcov_opts << '--exclude' << 'spec'
15
+ t.rcov_opts << '--text-summary'
16
+ t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
11
17
  end
12
18
 
13
19
  require 'cucumber/rake/task'
14
20
  Cucumber::Rake::Task.new do |t|
15
21
  t.cucumber_opts = %w{--format pretty}
22
+
23
+ t.rcov = ENV["RCOV"] == "true"
24
+ t.rcov_opts << '--text-summary'
25
+ t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
26
+ t.rcov_opts << '--exclude features/,spec/'
16
27
  end
17
28
 
18
29
  desc "Run unit specifications"
@@ -9,17 +9,22 @@ Gem::Specification.new do |gem|
9
9
  gem.homepage = ""
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
- gem.files = `git ls-files`.split("\n")
12
+ gem.files = `git ls-files -- {bin,lib,test,spec,features}/* Gemfile LICENSE README.rdoc Rakefile ey_cloud_server.gemspec`.split("\n")
13
13
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+
14
15
  gem.name = "ey_cloud_server"
15
16
  gem.require_paths = ["lib"]
16
17
  gem.version = EY::CloudServer::VERSION
17
18
 
18
- gem.add_runtime_dependency 'json', '~> 1.6.4'
19
- gem.add_runtime_dependency 'open4', "~> 1.3.0"
19
+ gem.add_runtime_dependency 'json'
20
+ gem.add_runtime_dependency 'right_http_connection', '1.2.4'
21
+ gem.add_runtime_dependency 'right_aws', '2.0.0'
22
+ gem.add_runtime_dependency 'open4', "0.9.6"
20
23
 
21
- gem.add_runtime_dependency 'fog', '~> 1.1.2'
24
+ gem.add_runtime_dependency 'aws-s3'
25
+ gem.add_runtime_dependency 'fog', '0.7.2'
26
+ gem.add_runtime_dependency 'mysql'
22
27
  gem.add_runtime_dependency "ey_enzyme"
23
28
 
24
- gem.add_runtime_dependency "ey_instance_api_client", "~> 0.1.5"
29
+ gem.add_runtime_dependency "ey_instance_api_client", "0.1.1"
25
30
  end
@@ -9,11 +9,9 @@ require File.dirname(__FILE__) + '/../../spec/helpers'
9
9
 
10
10
  FakeWeb.allow_net_connect = false # if it's not here, it doesn't exist
11
11
  Randexp::Dictionary.words
12
- Fog.mock!
13
-
14
- Fog.mock!
15
12
 
16
13
  World(Helpers)
14
+ require 'spec/stubs/cucumber'
17
15
 
18
16
  Before do
19
17
  run_before
@@ -1,9 +1,11 @@
1
1
  require 'json'
2
+ require 'aws/s3'
2
3
  require 'date'
3
4
  require 'digest'
4
5
  require 'net/http'
5
6
  require 'fileutils'
6
7
  require 'json/ext'
8
+ require 'right_aws'
7
9
  require 'open-uri'
8
10
  require 'rest_client'
9
11
  require 'dbi'
@@ -47,4 +49,5 @@ require lib_dir + '/big-brother'
47
49
  require lib_dir + '/bucket_minder'
48
50
  require lib_dir + '/ey-api'
49
51
  require lib_dir + '/snapshot_minder'
52
+ require lib_dir + '/ec2'
50
53
  require lib_dir + '/../ey_cloud_server/version'
@@ -55,14 +55,14 @@ module EY
55
55
  end
56
56
  @result.to_json
57
57
  end
58
-
58
+
59
59
  def check_mysql
60
60
  check_process('mysqld')
61
61
  DBI.connect("DBI:Mysql:mysql:#{@dna['db_host']}", 'root', @dna['users'].first['password'])
62
62
  rescue DBI::DatabaseError => e
63
63
  @result['mysqld'] = 'down'
64
64
  end
65
-
65
+
66
66
  def check_process(name)
67
67
  return if name == ''
68
68
  pids = `pgrep #{name}`.split("\n")
@@ -0,0 +1,17 @@
1
+ module EY
2
+ class EC2
3
+ def initialize(opts = {})
4
+ @ec2 = RightAws::Ec2.new(opts[:aws_secret_id], opts[:aws_secret_key], :logger => Logger.new("/dev/null"))
5
+ end
6
+
7
+ def method_missing(method, *a, &b)
8
+ @ec2.send(method, *a, &b)
9
+ rescue RightAws::AwsError => e
10
+ retries ||= 10
11
+ retries -= 1
12
+ raise e if retries == 0
13
+ sleep 30
14
+ retry
15
+ end
16
+ end
17
+ end
@@ -6,7 +6,7 @@ module EY
6
6
  def dump(database_name, basename)
7
7
  file = basename + '.dump'
8
8
 
9
- command = "PGPASSWORD='#{password}' pg_dump -h #{host} --format=c --no-owner --no-privileges -U#{username} #{database_name}"
9
+ command = "PGPASSWORD='#{password}' pg_dump -h #{host} --format=c --no-privileges -Upostgres #{database_name}"
10
10
 
11
11
  if gpg?
12
12
  command << " | " << GPGEncryptor.command_for(key_id)
@@ -33,7 +33,7 @@ module EY
33
33
  raise "Cannot load a GPG backup"
34
34
  end
35
35
 
36
- command << " | PGPASSWORD='#{password}' pg_restore -h #{host} --format=c --ignore-version -U#{username} -d #{database_name}"
36
+ command << " | PGPASSWORD='#{password}' pg_restore -h #{host} --format=c -Upostgres -d #{database_name}"
37
37
 
38
38
  run(command)
39
39
  end
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module CloudServer
3
- VERSION = '1.4.29'
3
+ VERSION = '1.4.31'
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ describe "Postgres Backups" do
12
12
 
13
13
  EY::Backup.run(["-c", backup_config_file, "-l", @db_name, "-e", "postgresql"])
14
14
 
15
- stdout.should match(/0:#{@db_name}.*\.dump$/)
15
+ stdout.should match(/0:#{@db_name}.*\.dump.gz$/)
16
16
  end
17
17
 
18
18
  it "makes a split backup" do
@@ -100,12 +100,13 @@ module Helpers
100
100
 
101
101
  def drop_postgresql_database(db_key)
102
102
  db_name = created_postgresql_dbs[db_key]
103
- command = %Q{ PGPASSWORD='#{postgresql_password}' dropdb -U #{postgresql_user} -h #{postgresql_host} #{db_name} }
103
+ # system("PGPASSWORD='#{postgresql_password}' dropdb -U #{postgresql_user} -h #{postgresql_host} #{db_name}")
104
+ command=%Q{ssh -F /dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /home/#{postgresql_user}/.ssh/internal root@#{postgresql_host} "dropdb -U postgres -h localhost #{db_name}"}
104
105
  system(command)
105
106
  end
106
107
 
107
108
  def check_postgresql_database(db_name)
108
- command = %Q{ PGPASSWORD='#{postgresql_password}' psql -l -U #{postgresql_user} -h #{postgresql_host} | grep '#{db_name}' }
109
+ command=%Q{ssh -F /dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /home/#{postgresql_user}/.ssh/internal root@#{postgresql_host} "psql -l -U #{postgresql_user} -h localhost | grep '#{db_name}'"}
109
110
  system(command) || raise("Could not find db: #{db_name} with command:\n #{command}")
110
111
  db_name
111
112
  end
@@ -114,12 +115,15 @@ module Helpers
114
115
  db_name = generate_database_name('postgresql')
115
116
  created_postgresql_dbs[db_key] = db_name
116
117
  drop_postgresql_database(db_key)
117
- command = %Q{ PGPASSWORD='#{postgresql_password}' createdb -U #{postgresql_user} -h #{postgresql_host} #{db_name} }
118
+ # ssh -F /dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /home/$USER/.ssh/internal root@$DB_HOST "createdb -U postgres -h localhost -O $USER testdbreallytestingweee8"
119
+ # system("PGPASSWORD='#{postgresql_password}' createdb -U #{postgresql_user} -h #{postgresql_host} #{db_name}") || raise("Could not create db: #{db_name}")
120
+ command=%Q{ssh -F /dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /home/#{postgresql_user}/.ssh/internal root@#{postgresql_host} "createdb -U postgres -h localhost -O #{postgresql_user} #{db_name}"}
118
121
  system(command) || raise("Could not create db: #{db_name} with command:\n #{command}")
119
122
  write_database_config('postgresql', postgresql_user, postgresql_password, postgresql_host, created_postgresql_dbs.values, region)
120
123
  db_name
121
124
  end
122
-
125
+
126
+
123
127
  def write_database_config(type, root_user, root_password, host, databases, region)
124
128
  @database_config = {
125
129
  :env => 'production',
@@ -145,7 +149,7 @@ module Helpers
145
149
  end
146
150
 
147
151
  def run_sql(command, database)
148
- system("mysql -u#{mysql_user} -h#{mysql_host} #{mysql_password_option} -D#{database} -e '#{command}'")
152
+ system("echo '#{command}' |mysql -u#{mysql_user} -h#{mysql_host} #{mysql_password_option} -D#{database}")
149
153
  end
150
154
 
151
155
  def run_sql_pipe(io, database)
@@ -189,11 +193,11 @@ module Helpers
189
193
  end
190
194
 
191
195
  def mysql_host
192
- spec_config['mysql_host'] || 'localhost'
196
+ spec_config['mysql_host']
193
197
  end
194
198
 
195
199
  def postgresql_host
196
- spec_config['postgresql_host'] || 'localhost'
200
+ spec_config['postgresql_host']
197
201
  end
198
202
 
199
203
  def created_mysql_dbs
@@ -7,7 +7,7 @@ require 'randexp'
7
7
  require 'fog'
8
8
 
9
9
  # Made tests work with actual storage; better tests. - rpowell Fri Aug 5 17:53:17 PDT 2011
10
- #
10
+ #
11
11
  Fog.mock!
12
12
 
13
13
  require File.dirname(__FILE__) + '/fakefs_hax'
@@ -18,7 +18,7 @@ Helpers.load_spec_config
18
18
  FakeWeb.allow_net_connect = false # if it's not here, it doesn't exist
19
19
  Randexp::Dictionary.words
20
20
 
21
- RSpec.configure do |config|
21
+ Spec::Runner.configure do |config|
22
22
  config.include(Helpers)
23
23
 
24
24
  config.before(:each) do
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_cloud_server
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 4
9
- - 29
10
- version: 1.4.29
8
+ - 31
9
+ version: 1.4.31
11
10
  platform: ruby
12
11
  authors:
13
12
  - EngineYard
@@ -15,86 +14,127 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-12-29 00:00:00 Z
17
+ date: 2012-01-10 00:00:00 -08:00
18
+ default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
- - - ~>
25
+ - - ">="
27
26
  - !ruby/object:Gem::Version
28
- hash: 7
29
27
  segments:
30
- - 1
31
- - 6
32
- - 4
33
- version: 1.6.4
28
+ - 0
29
+ version: "0"
34
30
  type: :runtime
35
31
  version_requirements: *id001
36
32
  - !ruby/object:Gem::Dependency
37
- name: open4
33
+ name: right_http_connection
38
34
  prerelease: false
39
35
  requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
36
  requirements:
42
- - - ~>
37
+ - - "="
43
38
  - !ruby/object:Gem::Version
44
- hash: 27
45
39
  segments:
46
40
  - 1
47
- - 3
48
- - 0
49
- version: 1.3.0
41
+ - 2
42
+ - 4
43
+ version: 1.2.4
50
44
  type: :runtime
51
45
  version_requirements: *id002
52
46
  - !ruby/object:Gem::Dependency
53
- name: fog
47
+ name: right_aws
54
48
  prerelease: false
55
49
  requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
50
  requirements:
58
- - - ~>
51
+ - - "="
59
52
  - !ruby/object:Gem::Version
60
- hash: 23
61
53
  segments:
62
- - 1
63
- - 1
64
54
  - 2
65
- version: 1.1.2
55
+ - 0
56
+ - 0
57
+ version: 2.0.0
66
58
  type: :runtime
67
59
  version_requirements: *id003
68
60
  - !ruby/object:Gem::Dependency
69
- name: ey_enzyme
61
+ name: open4
70
62
  prerelease: false
71
63
  requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
64
+ requirements:
65
+ - - "="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ - 9
70
+ - 6
71
+ version: 0.9.6
72
+ type: :runtime
73
+ version_requirements: *id004
74
+ - !ruby/object:Gem::Dependency
75
+ name: aws-s3
76
+ prerelease: false
77
+ requirement: &id005 !ruby/object:Gem::Requirement
73
78
  requirements:
74
79
  - - ">="
75
80
  - !ruby/object:Gem::Version
76
- hash: 3
77
81
  segments:
78
82
  - 0
79
83
  version: "0"
80
84
  type: :runtime
81
- version_requirements: *id004
85
+ version_requirements: *id005
86
+ - !ruby/object:Gem::Dependency
87
+ name: fog
88
+ prerelease: false
89
+ requirement: &id006 !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "="
92
+ - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
95
+ - 7
96
+ - 2
97
+ version: 0.7.2
98
+ type: :runtime
99
+ version_requirements: *id006
100
+ - !ruby/object:Gem::Dependency
101
+ name: mysql
102
+ prerelease: false
103
+ requirement: &id007 !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ segments:
108
+ - 0
109
+ version: "0"
110
+ type: :runtime
111
+ version_requirements: *id007
112
+ - !ruby/object:Gem::Dependency
113
+ name: ey_enzyme
114
+ prerelease: false
115
+ requirement: &id008 !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ segments:
120
+ - 0
121
+ version: "0"
122
+ type: :runtime
123
+ version_requirements: *id008
82
124
  - !ruby/object:Gem::Dependency
83
125
  name: ey_instance_api_client
84
126
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
86
- none: false
127
+ requirement: &id009 !ruby/object:Gem::Requirement
87
128
  requirements:
88
- - - ~>
129
+ - - "="
89
130
  - !ruby/object:Gem::Version
90
- hash: 17
91
131
  segments:
92
132
  - 0
93
133
  - 1
94
- - 5
95
- version: 0.1.5
134
+ - 1
135
+ version: 0.1.1
96
136
  type: :runtime
97
- version_requirements: *id005
137
+ version_requirements: *id009
98
138
  description: ""
99
139
  email:
100
140
  - engineering@engineyard.com
@@ -110,14 +150,10 @@ extensions: []
110
150
  extra_rdoc_files: []
111
151
 
112
152
  files:
113
- - .gitignore
114
- - .rvmrc
115
153
  - Gemfile
116
- - Gemfile.lock
117
154
  - LICENSE
118
155
  - README.rdoc
119
156
  - Rakefile
120
- - TODO
121
157
  - bin/binary_log_purge
122
158
  - bin/clear_binlogs_from_slave
123
159
  - bin/ey-agent
@@ -136,6 +172,7 @@ files:
136
172
  - lib/ey-flex.rb
137
173
  - lib/ey-flex/big-brother.rb
138
174
  - lib/ey-flex/bucket_minder.rb
175
+ - lib/ey-flex/ec2.rb
139
176
  - lib/ey-flex/ey-api.rb
140
177
  - lib/ey-flex/snapshot_minder.rb
141
178
  - lib/ey_backup.rb
@@ -157,7 +194,6 @@ files:
157
194
  - lib/ey_cloud_server.rb
158
195
  - lib/ey_cloud_server/mysql_start.rb
159
196
  - lib/ey_cloud_server/version.rb
160
- - script/ci
161
197
  - spec/big-brother_spec.rb
162
198
  - spec/bucket_minder_spec.rb
163
199
  - spec/config-example.yml
@@ -174,7 +210,7 @@ files:
174
210
  - spec/helpers.rb
175
211
  - spec/snapshot_minder_spec.rb
176
212
  - spec/spec_helper.rb
177
- - tmp/.gitignore
213
+ has_rdoc: true
178
214
  homepage: ""
179
215
  licenses: []
180
216
 
@@ -184,27 +220,23 @@ rdoc_options: []
184
220
  require_paths:
185
221
  - lib
186
222
  required_ruby_version: !ruby/object:Gem::Requirement
187
- none: false
188
223
  requirements:
189
224
  - - ">="
190
225
  - !ruby/object:Gem::Version
191
- hash: 3
192
226
  segments:
193
227
  - 0
194
228
  version: "0"
195
229
  required_rubygems_version: !ruby/object:Gem::Requirement
196
- none: false
197
230
  requirements:
198
231
  - - ">="
199
232
  - !ruby/object:Gem::Version
200
- hash: 3
201
233
  segments:
202
234
  - 0
203
235
  version: "0"
204
236
  requirements: []
205
237
 
206
238
  rubyforge_project:
207
- rubygems_version: 1.8.10
239
+ rubygems_version: 1.3.6
208
240
  signing_key:
209
241
  specification_version: 3
210
242
  summary: Server side components for Engine Yard's cloud
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- .DS_Store
2
- pkg
3
- vendor/gems/ruby/1.8/*
4
- vendor/gems/environment.rb
5
- !vendor/gems/ruby/1.8/cache
6
- gbin
7
- coverage
8
- spec/config.yml
9
- tmp
10
- .bundle
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.8.7
@@ -1,124 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ey_cloud_server (1.4.29.pre)
5
- ey_enzyme
6
- ey_instance_api_client (~> 0.1.5)
7
- fog (~> 1.1.2)
8
- json (~> 1.6.4)
9
- open4 (~> 1.3.0)
10
-
11
- GEM
12
- remote: http://rubygems.org/
13
- remote: http://geminst:hoa3laml@rubygems.engineyard.com/
14
- specs:
15
- builder (3.0.0)
16
- chef (0.6.0.2)
17
- erubis
18
- extlib
19
- json
20
- ohai
21
- ruby-openid
22
- stomp
23
- chef-deploy (0.2.5)
24
- columnize (0.3.6)
25
- cucumber (1.1.4)
26
- builder (>= 2.1.2)
27
- diff-lcs (>= 1.1.2)
28
- gherkin (~> 2.7.1)
29
- json (>= 1.4.6)
30
- term-ansicolor (>= 1.0.6)
31
- dbd-mysql (0.4.4)
32
- dbi (>= 0.4.0)
33
- mysql
34
- dbi (0.4.5)
35
- deprecated (= 2.0.1)
36
- deprecated (2.0.1)
37
- diff-lcs (1.1.3)
38
- erubis (2.7.0)
39
- excon (0.9.4)
40
- extlib (0.9.15)
41
- ey_enzyme (0.9.44)
42
- chef (= 0.6.0.2)
43
- chef-deploy (= 0.2.5)
44
- json
45
- rest-client (~> 1.6.1)
46
- ey_instance_api_client (0.1.5)
47
- json
48
- rest-client
49
- fakefs (0.0.1.ninjas)
50
- fakeweb (1.2.6.ninjas)
51
- fog (1.1.2)
52
- builder
53
- excon (~> 0.9.0)
54
- formatador (~> 0.2.0)
55
- mime-types
56
- multi_json (~> 1.0.3)
57
- net-scp (~> 1.0.4)
58
- net-ssh (>= 2.1.3)
59
- nokogiri (~> 1.5.0)
60
- ruby-hmac
61
- formatador (0.2.1)
62
- gherkin (2.7.1)
63
- json (>= 1.4.6)
64
- json (1.6.4)
65
- linecache (0.46)
66
- rbx-require-relative (> 0.0.4)
67
- mime-types (1.17.2)
68
- mixlib-cli (1.2.2)
69
- mixlib-config (1.1.2)
70
- mixlib-log (1.3.0)
71
- multi_json (1.0.4)
72
- mysql (2.8.1)
73
- net-scp (1.0.4)
74
- net-ssh (>= 1.99.1)
75
- net-ssh (2.2.1)
76
- nokogiri (1.5.0)
77
- ohai (0.6.10)
78
- mixlib-cli
79
- mixlib-config
80
- mixlib-log
81
- systemu (~> 2.2.0)
82
- yajl-ruby
83
- open4 (1.3.0)
84
- rake (0.9.2.2)
85
- randexp (0.1.6)
86
- rbx-require-relative (0.0.5)
87
- rcov (0.9.11)
88
- rest-client (1.6.7)
89
- mime-types (>= 1.16)
90
- rspec (2.7.0)
91
- rspec-core (~> 2.7.0)
92
- rspec-expectations (~> 2.7.0)
93
- rspec-mocks (~> 2.7.0)
94
- rspec-core (2.7.1)
95
- rspec-expectations (2.7.0)
96
- diff-lcs (~> 1.1.2)
97
- rspec-mocks (2.7.0)
98
- ruby-debug (0.10.4)
99
- columnize (>= 0.1)
100
- ruby-debug-base (~> 0.10.4.0)
101
- ruby-debug-base (0.10.4)
102
- linecache (>= 0.3)
103
- ruby-hmac (0.4.0)
104
- ruby-openid (2.1.8)
105
- stomp (1.2.0)
106
- systemu (2.2.0)
107
- term-ansicolor (1.0.7)
108
- yajl-ruby (1.1.0)
109
-
110
- PLATFORMS
111
- ruby
112
-
113
- DEPENDENCIES
114
- cucumber
115
- dbd-mysql
116
- dbi
117
- ey_cloud_server!
118
- fakefs (= 0.0.1.ninjas)
119
- fakeweb (= 1.2.6.ninjas)
120
- rake
121
- randexp
122
- rcov
123
- rspec
124
- ruby-debug
data/TODO DELETED
@@ -1,4 +0,0 @@
1
- TODO:
2
- Fix LICENSE with your name
3
- Fix Rakefile with your name and contact info
4
- Add your code to lib/<%= name %>.rb
data/script/ci DELETED
@@ -1,31 +0,0 @@
1
- #! /bin/sh
2
-
3
- set -x
4
- set -e # exits on any non 0 exit code
5
-
6
- # TODO: WHY?
7
-
8
- sudo cp -pr /root/.gnupg $HOME/
9
- sudo chown -R deploy:deploy $HOME/.gnupg/
10
-
11
- cp spec/config-example.yml spec/config.yml
12
-
13
- sed -i "s/^mysql_host: *.*$/mysql_host: $DB_HOST/g" spec/config.yml
14
- sed -i "s/^mysql_user: *.*$/mysql_user: root/g" spec/config.yml
15
- sed -i "s/^mysql_password: *.*$/mysql_password: $DB_PASS/g" spec/config.yml
16
-
17
- sed -i "s/^postgresql_host: *.*$/postgresql_host: $DB_HOST/g" spec/config.yml
18
- sed -i "s/^postgresql_user: *.*$/postgresql_user: $USER/g" spec/config.yml
19
- sed -i "s/^postgresql_password: *.*$/postgresql_password: $DB_PASS/g" spec/config.yml
20
-
21
- # Get the real aws keys; first remove what we have
22
- grep -v aws_ spec/config.yml >spec/config.yml.tmp
23
- mv spec/config.yml.tmp spec/config.yml
24
- sudo grep -i aws_secret_key /etc/chef/dna.json | tail -n 1 | sed -e 's/,* *$//' -e 's/^ *//' >>spec/config.yml
25
- sudo grep -i aws_secret_id /etc/chef/dna.json | tail -n 1 | sed -e 's/,* *$//' -e 's/^ *//' >>spec/config.yml
26
-
27
- echo "CONFIG FILE: "
28
- cat spec/config.yml
29
-
30
- bundle install --deployment &> bundle.log
31
- bundle exec rake --trace