my-simon 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/simon +15 -3
- data/my-simon.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/bin/simon
CHANGED
@@ -10,7 +10,8 @@ require 'rubygems'
|
|
10
10
|
require 'commander/import'
|
11
11
|
|
12
12
|
simon_controller = Simon.new
|
13
|
-
|
13
|
+
svn_path = "https://samcreate@evolveit.svn.beanstalkapp.com/project_boilerplate/trunk/default"
|
14
|
+
svn_path_heroku = "https://samcreate@evolveit.svn.beanstalkapp.com/project_boilerplate/trunk/heroku"
|
14
15
|
program :version, '0.0.1'
|
15
16
|
program :description, 'CLI tool for Simon, a simple MVC boilerplate'
|
16
17
|
|
@@ -22,8 +23,13 @@ command :create do |c|
|
|
22
23
|
c.option '--some-switch', 'Some switch that does something'
|
23
24
|
c.action do |args, options|
|
24
25
|
# Do something or c.when_called My-simon::Commands::Create,
|
25
|
-
|
26
|
-
|
26
|
+
|
27
|
+
cmd = "svn export #{svn_path} app --quiet"
|
28
|
+
Kernel::system(cmd)
|
29
|
+
cmd = "cd ./app/"
|
30
|
+
Kernel::system(cmd)
|
31
|
+
log "---> Boilerplate added"
|
32
|
+
# simon_controller.rename
|
27
33
|
|
28
34
|
end
|
29
35
|
end
|
@@ -36,6 +42,12 @@ command :add do |c|
|
|
36
42
|
c.option '--some-switch', 'Some switch that does something'
|
37
43
|
c.action do |args, options|
|
38
44
|
# Do something or c.when_called My-simon::Commands::Add,
|
45
|
+
case args[0]
|
46
|
+
when 'heroku'
|
47
|
+
cmd = "svn export #{svn_path_heroku} ./ --quiet --force"
|
48
|
+
Kernel::system(cmd)
|
49
|
+
log "---> installing heroku files"
|
50
|
+
end
|
39
51
|
end
|
40
52
|
end
|
41
53
|
|
data/my-simon.gemspec
CHANGED