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 +4 -4
- data/Rakefile +3 -3
- data/lib/autodeploy/deployer.rb +1 -1
- data/lib/autodeploy/version.rb +1 -1
- data/lib/autodeploy.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f8455eb0fd7a8f1ccf8c29ce4bccbaa724b01bf
|
|
4
|
+
data.tar.gz: e584f6bbcc7502a7804c7342576765234f02a8fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
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)
|
data/lib/autodeploy/deployer.rb
CHANGED
|
@@ -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
|
data/lib/autodeploy/version.rb
CHANGED
data/lib/autodeploy.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|