capdocker 1.0.60 → 1.0.61

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/capdocker.gemspec +1 -1
  3. data/lib/auth.rb +7 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50ae3497dce2951514084d882b6f48b2c77076f1
4
- data.tar.gz: 272121cb7538b835289985539e26426b904fa804
3
+ metadata.gz: 3e960c8339a77848219a25caf42e804e2024a110
4
+ data.tar.gz: 9cee55051d14845c0fb05c2acbbbbc58c4cf1276
5
5
  SHA512:
6
- metadata.gz: fcc3e88b8c123561c5e9f2e7265356b347e186a67d1daed18236bcc24b6d645e87312509d184168552a31f472b65a1e8f5039d0c047308a1a335756035b7d501
7
- data.tar.gz: 15179aa8a80b786d49a0ab32ef12b761e9cb65db1c1c64378ab4ff0f1e2d71e69fceecfb798341a7f6b08b9266a332f5bc8de63b0f864a043e765d56ec70d91d
6
+ metadata.gz: 9a34834f959cbfc5ec6c0405fc5c3d87be93a441e5ed61656c78a546fd8252c8dcc266e390e019f514a5e9b108c4803a2ba04b30d9fb1917e33eb4f6daa48066
7
+ data.tar.gz: ef219f41935abae3174d03299cc7e1b9090778f537ddf3ef5035a5197599807b3352429f8d323a14404fe1788b4301c99b2f144f93bdb7978fe2d72de4d1f818
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.60"
5
+ s.version = "1.0.61"
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/auth.rb CHANGED
@@ -30,6 +30,13 @@ Capistrano::Configuration.instance(:must_exist).load do
30
30
  task :get_deploy do
31
31
  login
32
32
  result = JSON.parse(open("http://#{auth_base}/account/appinfo/?account=#{auth_account}&token=#{auth_token}&app=#{application}").read)
33
+ setup_app if result["error"]
34
+ end
35
+
36
+ desc "After a successful login, connect to the deploy server and receive deploy information"
37
+ task :setup_app do
38
+ login
39
+ result = JSON.parse(open("http://#{auth_base}/account/appcreate/?account=#{auth_account}&token=#{auth_token}&app=#{application}").read)
33
40
  puts result
34
41
  end
35
42
 
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.60
4
+ version: 1.0.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley