my-simon 0.1.4 → 0.1.5

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/simon +15 -3
  3. data/my-simon.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
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
- puts "\n Create called"
26
- simon_controller.rename
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "my-simon"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron McGuire"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my-simon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: