powify 0.9.1 → 0.9.2
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.
- checksums.yaml +4 -4
- data/lib/powify/app.rb +7 -2
- data/lib/powify/client.rb +1 -0
- data/lib/powify/utils.rb +1 -1
- data/lib/powify/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42279a73a709dcd7c8825c03b29fad7d1e0e6e82
|
4
|
+
data.tar.gz: 2159ac5c67c0ab73f9544396abc2e54676f3f435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 043025df38cc98c265ab518aeda3cf9fe6d8604a80a22369a4c149dd9e9eac549f7ce9c87f06509219730c4cda107ba2d274e7b65e350a638bf1599a41a15525
|
7
|
+
data.tar.gz: ce658205a0718408fa499f11e4ff1af268b1db8a40ed4e0b6f3f99c301e6eba49a78360689f26671232ccafe8730786486c0b089da559f740dc90cd4ab3295a0
|
data/lib/powify/app.rb
CHANGED
@@ -15,8 +15,13 @@ module Powify
|
|
15
15
|
def create(args = [])
|
16
16
|
app_name = args[0] ? args[0].strip.to_s.downcase : File.basename(current_path)
|
17
17
|
symlink_path = "#{POWPATH}/#{app_name}"
|
18
|
-
|
19
|
-
|
18
|
+
unless File.exist?(symlink_path)
|
19
|
+
FileUtils.ln_s(current_path, symlink_path)
|
20
|
+
$stdout.puts "Successfully created pow app #{app_name}!"
|
21
|
+
else
|
22
|
+
$stdout.puts "App `#{app_name}` already exists."
|
23
|
+
$stdout.puts "Powify skipped to create symlink."
|
24
|
+
end
|
20
25
|
$stdout.puts "Type `powify browse #{app_name}` to open the application in your browser."
|
21
26
|
end
|
22
27
|
alias_method :link, :create
|
data/lib/powify/client.rb
CHANGED
data/lib/powify/utils.rb
CHANGED
@@ -17,7 +17,7 @@ module Powify
|
|
17
17
|
def install
|
18
18
|
uninstall
|
19
19
|
$stdout.puts "Cloning powify.dev from github and bundling powify.dev..."
|
20
|
-
%x{git clone -q https://github.com/sethvargo/powify.git powify && cd powify && bundle install --deployment && cd .. && mv powify "#{config['hostRoot']}"}
|
20
|
+
%x{git clone -q https://github.com/sethvargo/powify.dev.git powify && cd powify && bundle install --deployment && cd .. && mv powify "#{config['hostRoot']}"}
|
21
21
|
$stdout.puts "Done!"
|
22
22
|
end
|
23
23
|
alias_method :reinstall, :install
|
data/lib/powify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Powify provides an easy wrapper for use with 37 signal's pow. Use this
|
14
14
|
gem to easily install and update pow server. Easily create, destroy, and manage
|
@@ -57,4 +57,3 @@ signing_key:
|
|
57
57
|
specification_version: 4
|
58
58
|
summary: Powify is an easy-to-use wrapper for 37 signal's pow
|
59
59
|
test_files: []
|
60
|
-
has_rdoc:
|