powerup 0.0.1 → 0.0.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.
- data/lib/powerup/railties/powerup.rake +16 -10
- data/lib/powerup/version.rb +1 -1
- metadata +5 -7
@@ -3,7 +3,7 @@ APP_NAME = File.basename(APP_PATH)
|
|
3
3
|
HOME = ENV['HOME']
|
4
4
|
POW_PATH = File.join(HOME, '.pow')
|
5
5
|
|
6
|
-
def
|
6
|
+
def exec_with_explain(cmd)
|
7
7
|
puts "executing '#{cmd}'"
|
8
8
|
exec cmd
|
9
9
|
end
|
@@ -18,22 +18,28 @@ namespace :pow do
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
desc "
|
21
|
+
desc "Add application to pow"
|
22
22
|
task :add => :check_for_pow do
|
23
|
-
puts "
|
24
|
-
|
23
|
+
puts "Add '#{APP_NAME}' to pow ..."
|
24
|
+
exec_with_explain "ln -s #{APP_PATH} #{POW_PATH}"
|
25
25
|
end
|
26
26
|
|
27
|
-
desc "Remove
|
27
|
+
desc "Remove application from pow"
|
28
28
|
task :remove => :check_for_pow do
|
29
|
-
puts "
|
30
|
-
|
29
|
+
puts "Remove '#{APP_NAME}' from pow"
|
30
|
+
exec_with_explain "rm #{File.join(POW_PATH, APP_NAME)}"
|
31
31
|
end
|
32
32
|
|
33
|
-
desc "
|
33
|
+
desc "Restart application"
|
34
34
|
task :restart => :check_for_pow do
|
35
|
-
puts "
|
36
|
-
|
35
|
+
puts "Restart '#{APP_NAME}'"
|
36
|
+
exec_with_explain "touch #{File.join(APP_PATH, "tmp")}/restart.txt"
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Open application in browser"
|
40
|
+
task :open => :check_for_pow do
|
41
|
+
puts "Open'#{APP_NAME}' in browser ..."
|
42
|
+
exec_with_explain "open http://#{APP_NAME}.dev"
|
37
43
|
end
|
38
44
|
end
|
39
45
|
|
data/lib/powerup/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powerup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan-Oliver Jahner
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-04-10 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: adds rake tasks to use your application with pow
|
@@ -39,7 +38,6 @@ files:
|
|
39
38
|
- lib/powerup/railties/powerup.rake
|
40
39
|
- lib/powerup/version.rb
|
41
40
|
- powerup.gemspec
|
42
|
-
has_rdoc: true
|
43
41
|
homepage: ""
|
44
42
|
licenses: []
|
45
43
|
|
@@ -69,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
67
|
requirements: []
|
70
68
|
|
71
69
|
rubyforge_project: powerup
|
72
|
-
rubygems_version: 1.
|
70
|
+
rubygems_version: 1.7.2
|
73
71
|
signing_key:
|
74
72
|
specification_version: 3
|
75
73
|
summary: use pow with your application
|