vesper 0.1.1 → 0.2.0
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/README.md +2 -6
- data/bin/vesper +14 -2
- data/lib/vesper/template/app.rb +1 -1
- data/lib/vesper/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -10,10 +10,6 @@ You may need to sudo this:
|
|
10
10
|
|
11
11
|
Create an app:
|
12
12
|
|
13
|
-
vesper create MyApp
|
13
|
+
vesper create MyApp
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
rackup
|
18
|
-
|
19
|
-
Then take a look at http://localhost:9292.
|
15
|
+
Follow the on screen instructions, then take a look at http://localhost:9292.
|
data/bin/vesper
CHANGED
@@ -2,11 +2,23 @@
|
|
2
2
|
|
3
3
|
require 'fileutils.rb'
|
4
4
|
|
5
|
-
if ARGV[0]
|
5
|
+
if ARGV[0] && ARGV[1]
|
6
6
|
case ARGV[0]
|
7
7
|
when 'create'
|
8
|
+
puts "Creating #{ARGV[1]}..."
|
8
9
|
FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/template', ARGV[1] unless Dir.exists? ARGV[1]
|
10
|
+
puts "Bundling gems..."
|
11
|
+
exec "cd #{ARGV[1]} && bundle >nul 2>nul && echo '\n#{ARGV[1]} is ready. Next steps:\n cd #{ARGV[1]}\n rackup\n'"
|
12
|
+
else
|
13
|
+
# This should be temporary until there are more ARGV[0] commands
|
14
|
+
puts ''
|
15
|
+
puts 'To create a Vesper app:'
|
16
|
+
puts ' vesper create <app_name>'
|
17
|
+
puts ''
|
9
18
|
end
|
10
19
|
else
|
11
|
-
|
20
|
+
puts ''
|
21
|
+
puts 'To create a Vesper app:'
|
22
|
+
puts ' vesper create <app_name>'
|
23
|
+
puts ''
|
12
24
|
end
|
data/lib/vesper/template/app.rb
CHANGED
data/lib/vesper/version.rb
CHANGED