rappa 0.0.5 → 0.0.6

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 (3) hide show
  1. data/bin/rappa +50 -0
  2. data/src/rappa.rb +1 -1
  3. metadata +1 -1
data/bin/rappa CHANGED
@@ -50,6 +50,7 @@ elsif Settings.rest.include?('expand')
50
50
  end
51
51
  elsif Settings.rest.include?('generate')
52
52
  Rappa.new.generate
53
+ puts '[SUCCESS] generated sample.rap.yml into current directory'
53
54
  elsif Settings.rest.include?('deploy')
54
55
  if Settings[:input_rap].nil?
55
56
  puts '[ERROR] You must supply an input .rap archive for deploy with -r e.g. rappa deploy -r /path/to/.rap -u http://host/api/deploy -k api_key'
@@ -69,5 +70,54 @@ elsif Settings.rest.include?('deploy')
69
70
  exit 1
70
71
  end
71
72
  end
73
+ else
74
+ info=<<-EOF
75
+
76
+ ---------------------------------------------------------------------------------
77
+ Rappa Version: 0.0.5
78
+ Released: 22 July 2013
79
+ ---------------------------------------------------------------------------------
80
+
81
+ Usage:
82
+
83
+ Package:
84
+ packages a directory containing a rap.yml into a .rap archive
85
+
86
+ rappa package -i /path/to/project -o /path/to/output/location
87
+
88
+ -i is the input directory location (mandatory)
89
+ -o is the output directory location (mandatory)
90
+
91
+ Expand:
92
+ expands a packaged .rap archive
93
+
94
+ rappa expand -a /path/to/.rap -d /path/to/output/location
95
+
96
+ -a is the input rap archive location (mandatory)
97
+ -d is the destination location (mandatory)
98
+
99
+ Deploy:
100
+ deploys a .rap archive to a thundercat instance (see https://github.com/masterthought/thundercat)
101
+
102
+ rappa deploy -r /path/to/.rap -u http://host/api/deploy -k api_key
103
+
104
+ -r is the input .rap archive to deploy (mandatory)
105
+ -u is the thundercat instance url (mandatory)
106
+ -k is the api_key (mandatory)
107
+
108
+ Generate:
109
+ generates a sample rap.yml in the current directory
110
+
111
+ rappa generate
112
+
113
+ Info:
114
+
115
+ For more information on how to use rappa please visit:
116
+ https://github.com/masterthought/rappa
117
+
118
+ ---------------------------------------------------------------------------------
119
+
120
+ EOF
121
+ puts info
72
122
  end
73
123
 
data/src/rappa.rb CHANGED
@@ -41,7 +41,7 @@ class Rappa
41
41
  end
42
42
 
43
43
  def generate
44
- sample = {:server_type => 'thin', :start_script => 'start.sh', :stop_script => 'stop.sh', :pids => 'tmp/pids', :name => 'App Name', :description => 'App Description'}
44
+ sample = {:name => 'App Name', :description => 'App Description', :version => '1', :server_type => 'thin', :start_script => 'start.sh', :stop_script => 'stop.sh', :pids => 'tmp/pids', :bootstrap => 'bootstrap.sh'}
45
45
  @file.open('sample.rap.yml', 'w') { |f| f.puts sample.to_yaml }
46
46
  end
47
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rappa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: