dory 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dory +9 -1
  3. data/lib/dory/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fac20130cea7a196f113155900f525eba858463
4
- data.tar.gz: 4f327801e90236e7b2ac714a56d122b89a102f49
3
+ metadata.gz: b0a229283bb0a4fd5f93556b55d92e2b3c296748
4
+ data.tar.gz: ebda24b25809a5422a1a980b9387dbe14935165d
5
5
  SHA512:
6
- metadata.gz: e1ccedc5f0042d52b5c1202a4c60a024136e3ab727a84f64cc3063f540131558aeb3d85bc0644c4664c958ae90bf1bd35165e48b7d69201103fd968e46a61aa2
7
- data.tar.gz: f852455efc767b44713bc4567d197dc7559a4e7f11c74f26479426c9c6530498b3ee003a4f860424d7836e6eed3e9a38c34be2a4273cd4b5cab30d74712fff30
6
+ metadata.gz: 91f6f16e663b974e626f6516d071c809b2d5f42f5496891de01128a824a7f3040e161126dfa30f386153bbe3d3e479b62a8e36ee6a2ec90100da59010a95081f
7
+ data.tar.gz: b78b1c079d77f788abb21a81c1a3d36a8d0b45c8d30a70de460613ca8fbedc49b86b3733a6c18fc6ac30af6ea556d44689d4fd3166b71bfcce404607e0fed19e
data/bin/dory CHANGED
@@ -108,7 +108,7 @@ class DoryBin < Thor
108
108
 
109
109
  > $ dory attach [proxy] [dns]
110
110
  LONGDESC
111
- def attach(service)
111
+ def attach(service = nil)
112
112
  exec_attach(service, options)
113
113
  end
114
114
 
@@ -124,6 +124,14 @@ class DoryBin < Thor
124
124
  nil
125
125
  end
126
126
  if mod
127
+ unless mod.running?
128
+ puts "Service '#{service}' is not running. Starting...".green
129
+ if mod.start
130
+ puts "Service '#{service}' successfully started.".green
131
+ else
132
+ puts "Error starting service '#{service}'".red
133
+ end
134
+ end
127
135
  if mod.running?
128
136
  puts "Note that if you Ctrl + C after attaching,".yellow
129
137
  puts "the service will need to be restarted.".yellow
data/lib/dory/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Dory
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  DATE = '2016-07-26'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter