shoestring 0.0.8 → 0.0.9

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: f4dee155b342a7544a1094673da4f0fb08146bea
4
- data.tar.gz: 0948c207858c2e71404735d0034daad34c8fa1b1
3
+ metadata.gz: b48b6f95bb1669288502b00e6823246c580c129c
4
+ data.tar.gz: fa3e9624aa47315caef09fc22e38ac67f402626e
5
5
  SHA512:
6
- metadata.gz: 5402553a7cd92bc9681eb652281e4e7340744631a6c02dcc9a7c709fb0d7b640b6076a21f608c30f8c48f8095731d0fb80074a06f4d6b8bd1a0cc74a385ac056
7
- data.tar.gz: 035569cb15f1087a3a7e5f0004f9b9f13b0bd581def56896637cb54ac4cb615b228dcb899eda1135b5c8211c292fa352f7e290be4c1dd1f9e8a3255ed3cc173a
6
+ metadata.gz: 31b19015bfdd14363b3d905577ed4c9d7c895a5eebf7f3e0cc464c29ee9ba40ab57f1d900fa8e6f9318233df7c1f3bb541bfa8476ba4e9b48bfb9825dbba7867
7
+ data.tar.gz: f36747e16421c58743a9236328488d820051c3d7c6b7a29ee76573d20ecf37d9c266e0eb055833c8671aa3d44f8b66a5bfe7039eb3cb14216b2a97d542afd6b3
data/README.md CHANGED
@@ -25,8 +25,6 @@ TODO: Add generator to get started
25
25
 
26
26
  * Link specific versions with Homebrew
27
27
  * Check for specific DB versions
28
- * Default pow host name to current dir
29
- * Auto install pow
30
28
 
31
29
  ## Contributing
32
30
 
@@ -25,7 +25,7 @@ module Shoestring
25
25
  else
26
26
  version = File.readlines("db/structure.sql").last
27
27
  end
28
- if old_version != version
28
+ if old_version.strip != version.strip
29
29
  system("bundle exec rake db:migrate") || abort("bundle exec rake db:migrate failed")
30
30
  end
31
31
  version
@@ -2,13 +2,23 @@ module Shoestring
2
2
  class Pow < Base
3
3
  attr_reader :host_name
4
4
 
5
- def initialize(host_name)
5
+ def initialize(host_name = `basename $PWD`)
6
6
  @host_name = host_name
7
7
  end
8
8
 
9
9
  def check
10
+ install_pow
10
11
  system("powder link #{host_name}")
11
12
  end
12
13
 
14
+ private
15
+
16
+ def install_pow
17
+ unless system("ps x | grep '[p]ow' > /dev/null")
18
+ puts "Installing pow..."
19
+ system("powder install")
20
+ end
21
+ end
22
+
13
23
  end
14
24
  end
@@ -1,3 +1,3 @@
1
1
  module Shoestring
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoestring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-06 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: powder