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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 932ae531a960913a9780ecea4c2b1b43b6d661b1
4
- data.tar.gz: 14fd4299b7fa0c10dd30e08de2cffe3082208128
3
+ metadata.gz: 42279a73a709dcd7c8825c03b29fad7d1e0e6e82
4
+ data.tar.gz: 2159ac5c67c0ab73f9544396abc2e54676f3f435
5
5
  SHA512:
6
- metadata.gz: 6dc6ffcd7ed97dbb70ced50cc5bc75e0b2f81adfb1a106c75ae79d364ac724be8c4029c3c9563ca0ebecabc7ae54b1e1af087322a97d43bd6cd2c98905f2ada2
7
- data.tar.gz: 34c3a683889753394a0d9bb626d2a76e9220a2492f3fbccab92634c4263c0b380005c5dc69ca8fc2403b2f34e4e0cde234dbae2f19477c7e16b79d2d2429e611
6
+ metadata.gz: 043025df38cc98c265ab518aeda3cf9fe6d8604a80a22369a4c149dd9e9eac549f7ce9c87f06509219730c4cda107ba2d274e7b65e350a638bf1599a41a15525
7
+ data.tar.gz: ce658205a0718408fa499f11e4ff1af268b1db8a40ed4e0b6f3f99c301e6eba49a78360689f26671232ccafe8730786486c0b089da559f740dc90cd4ab3295a0
@@ -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
- FileUtils.ln_s(current_path, symlink_path)
19
- $stdout.puts "Successfully created pow app #{app_name}!"
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
@@ -3,6 +3,7 @@ module Powify
3
3
  extend Powify
4
4
  class << self
5
5
  def run(args = [])
6
+ return help if args.empty?
6
7
  begin
7
8
  if (%w(version help) & args).empty?
8
9
  return Powify::Server.run(args[1..-1]) if args[0].strip == 'server'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Powify
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
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.1
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-06-16 00:00:00.000000000 Z
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: