capdocker 1.0.79 → 1.0.80

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c239a1799aeb811cf20f7c6a2dc4727ef33c9cc1
4
- data.tar.gz: 4bba71f50eb780c15dfbc74ea9c314240397fef2
3
+ metadata.gz: 4bda3ac3fe19b2692ad0fbaa3de4f0f8c97ced9a
4
+ data.tar.gz: 1787d10b6d6bdbecf1d27704f1a2bb9a03eec947
5
5
  SHA512:
6
- metadata.gz: dbbd792a0c5bccf443c1deb3b5bdfac62d82df9a9b93dfe03e9a89b2b47d61d2fad5539d2556841c2c7c79b0d7025ac9f9491cbbe04d6a2a4607a260704c673f
7
- data.tar.gz: 539e0ea5601becdd6224ee72059f176e0d18ed1ea53f33f1028fb55d453a249d17608a7c2afa43b98ad6ca1ae24a28bfae7e1b24216f1984b53df8decff1c256
6
+ metadata.gz: 7ff5eb767b147f3cf010e5bb267fbe6ef3b1bede2f9b05dbe1f869a895648ceded85948f7e3bafeeece99883f980f83f92ae2bd452754d70c8a89b7beaca33c2
7
+ data.tar.gz: d759577e55ce8e384c7fa76d67a72253c4487702b4807a16761be0cc47de9bbd38e77b0a976f52675c5ec7bc8711717680f1a2f4153b9c7c94bb6d4bb9cc7f8c
data/capdocker.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{capdocker}
5
- s.version = "1.0.79"
5
+ s.version = "1.0.80"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.email = %q{ross@oneblackbear.com}
8
8
  s.date = Time.now
data/lib/docker_deploy.rb CHANGED
@@ -1,4 +1,4 @@
1
- Capistrano::Configuration.instance(:must_exist).load do
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
2
 
3
3
  # Default Variables and Role
4
4
  random_app_number = rand(3000)
@@ -9,7 +9,8 @@ Capistrano::Configuration.instance(:must_exist).load do
9
9
  set :app_port, random_app_number+8100
10
10
  set :branch, "HEAD"
11
11
  set :volumes, []
12
- if roles.empty?
12
+ set :build_commands, []
13
+ if roles.empty?
13
14
  role :web, "obb1.oneblackbear.com"
14
15
  end
15
16
 
@@ -44,7 +45,7 @@ Capistrano::Configuration.instance(:must_exist).load do
44
45
  # This is the manin deployment namespace
45
46
  # default command gets run if invoked via `cap deploy`
46
47
  namespace :deploy do
47
-
48
+
48
49
  desc "Deploys the project to docker server."
49
50
  task :default do
50
51
  update_code
@@ -54,7 +55,7 @@ Capistrano::Configuration.instance(:must_exist).load do
54
55
  end
55
56
 
56
57
  task :prepare do
57
- set :basedir, capture("pwd").gsub(/\n|\r/, "")
58
+ set :basedir, capture("pwd").gsub(/\n|\r/, "")
58
59
  run "cd ./containers/#{application} && rm -Rf ./*" rescue ""
59
60
  run "mkdir -p containers/#{application}/platform"
60
61
  run "mkdir -m0777 -p mounts/#{application}/mysql"
@@ -63,7 +64,7 @@ Capistrano::Configuration.instance(:must_exist).load do
63
64
  task :configure_platform do
64
65
  host_content = from_template("templates/nginx_host.erb")
65
66
  put host_content, "containers/#{application}/platform/nginx_host.conf"
66
-
67
+
67
68
  container_content = from_template("templates/nginx_container.erb")
68
69
  put container_content, "containers/#{application}/platform/nginx_container.conf"
69
70
 
@@ -81,15 +82,15 @@ Capistrano::Configuration.instance(:must_exist).load do
81
82
  run "rm containers/#{application}/#{tag}"
82
83
  end
83
84
 
84
- task :update_builds do
85
+ task :update_builds do
85
86
 
86
87
  end
87
88
 
88
- task :mount_shares do
89
-
89
+ task :mount_shares do
90
+
90
91
  end
91
92
 
92
- task :create_symlink do
93
+ task :create_symlink do
93
94
  run "ln -f -s #{basedir}/containers/#{application}/platform/nginx_host.conf ./conf/nginx/#{application}.conf"
94
95
  end
95
96
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capdocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.79
4
+ version: 1.0.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley