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 +4 -4
- data/README.md +0 -2
- data/lib/shoestring/migration.rb +1 -1
- data/lib/shoestring/pow.rb +11 -1
- data/lib/shoestring/version.rb +1 -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: b48b6f95bb1669288502b00e6823246c580c129c
|
4
|
+
data.tar.gz: fa3e9624aa47315caef09fc22e38ac67f402626e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31b19015bfdd14363b3d905577ed4c9d7c895a5eebf7f3e0cc464c29ee9ba40ab57f1d900fa8e6f9318233df7c1f3bb541bfa8476ba4e9b48bfb9825dbba7867
|
7
|
+
data.tar.gz: f36747e16421c58743a9236328488d820051c3d7c6b7a29ee76573d20ecf37d9c266e0eb055833c8671aa3d44f8b66a5bfe7039eb3cb14216b2a97d542afd6b3
|
data/README.md
CHANGED
data/lib/shoestring/migration.rb
CHANGED
@@ -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
|
data/lib/shoestring/pow.rb
CHANGED
@@ -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
|
data/lib/shoestring/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: powder
|