autodeploy 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 611b9faadcff46bf572557b3c6a2a2514057228a
4
- data.tar.gz: e25f3d8d5816513333b3c8a5f1a761437c196af5
3
+ metadata.gz: 2f8455eb0fd7a8f1ccf8c29ce4bccbaa724b01bf
4
+ data.tar.gz: e584f6bbcc7502a7804c7342576765234f02a8fa
5
5
  SHA512:
6
- metadata.gz: f73f9ae6604389330fe2ae05a5207f24bbf0ca2e64b7ee5f685227230d261be6085238f7301ff65ae7d58c68492280389473b01eb92f2acb15fa75a91e3b02f3
7
- data.tar.gz: d906b78523b9620eee33579735447ef5728a339ce957025b488c42496a54cea459e4d3a4e0a33d40d8edd12a021037579ed7beda51e7c0a083f9d91c368f13b2
6
+ metadata.gz: bde8a2ef9b842f7ab74752d76ea1da7128ca494096f95698660a28f9f64fc2d68b6ce3aeee5b17c916b6c564e0cb80ae42b45684d5e7614b88662e62ec59ba64
7
+ data.tar.gz: 1de902ff6495cb513ebbf9cfe1fd462b8920754e9014493b5aed578aa2b5d5c30ece2d6e4d04aa72db7236c95b14051a030e2f334d354fe4ba25ee21426a92e6
data/Rakefile CHANGED
@@ -15,14 +15,14 @@ namespace :db do
15
15
 
16
16
  desc "Migrate the db"
17
17
  task :migrate do
18
- connection_details = YAML::load(File.open('config/database.yml'))
18
+ connection_details = YAML::load(File.open('config.yml'))['database']
19
19
  ActiveRecord::Base.establish_connection(connection_details)
20
20
  ActiveRecord::Migrator.migrate("lib/db/migrate/")
21
21
  end
22
22
 
23
23
  desc "Create the db"
24
24
  task :create do
25
- connection_details = YAML::load(File.open('config/database.yml'))
25
+ connection_details = YAML::load(File.open('config.yml'))['database']
26
26
  admin_connection = connection_details.merge({'database'=> 'mysql',
27
27
  'schema_search_path'=> 'public'})
28
28
  ActiveRecord::Base.establish_connection(admin_connection)
@@ -31,7 +31,7 @@ namespace :db do
31
31
 
32
32
  desc "drop the db"
33
33
  task :drop do
34
- connection_details = YAML::load(File.open('config/database.yml'))
34
+ connection_details = YAML::load(File.open('config.yml'))['database']
35
35
  admin_connection = connection_details.merge({'database'=> 'mysql',
36
36
  'schema_search_path'=> 'public'})
37
37
  ActiveRecord::Base.establish_connection(admin_connection)
@@ -98,7 +98,7 @@ module Autodeploy
98
98
  def move_artifact_to_deploy_dir
99
99
  Autodeploy.log "Moving aritifact to deploy dir"
100
100
 
101
- cmd = "mv #{@filepath} #{@config['deploy_dir']}/#{@config['deploy_artifact_name']}"
101
+ cmd = "mv -f #{@filepath} #{@config['deploy_dir']}/#{@config['deploy_artifact_name']}"
102
102
  success = system(cmd)
103
103
  end
104
104
  end
@@ -1,3 +1,3 @@
1
1
  module Autodeploy
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/autodeploy.rb CHANGED
@@ -29,7 +29,6 @@ module Autodeploy
29
29
  Dir.mkdir @config['download_dir']
30
30
  end
31
31
 
32
- puts @config
33
32
  ActiveRecord::Base.establish_connection(@config['database'])
34
33
  end
35
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autodeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Breznak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler