rappa 0.0.8 → 0.0.9
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 +10 -0
- data/bin/rappa +4 -1
- data/src/property_validator.rb +1 -1
- data/src/rappa.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -121,6 +121,9 @@ Once you have your rap.yml in the root of your project you must navigate one lev
|
|
121
121
|
* package
|
122
122
|
* expand
|
123
123
|
* deploy
|
124
|
+
* standalone_package
|
125
|
+
* standalone_expand
|
126
|
+
* standalone_deploy
|
124
127
|
|
125
128
|
### package
|
126
129
|
|
@@ -153,6 +156,13 @@ This deploys a rap archive to a thundercat server e.g.
|
|
153
156
|
-r is to specify your rap archive and -u is the url of the deploy api where your thundercat instance is running. -k is your api_key which is configured in your
|
154
157
|
thundercat server.
|
155
158
|
|
159
|
+
### Standalone options
|
160
|
+
|
161
|
+
If you use any of the standalone commands they do the same as the regular ones except they work with a regular folder or zip file instead of a specific rap archive.
|
162
|
+
The standalone_deploy will deploy the supplied zip archive to the thundercat instance in the /standalone directory
|
163
|
+
|
164
|
+
This is useful if you want to split your deployables into pieces and symlink folders from the /standalone directory e.g your asset pipeline or public directory
|
165
|
+
|
156
166
|
## Develop
|
157
167
|
|
158
168
|
Interested in contributing? Great just let me know how you want to help.
|
data/bin/rappa
CHANGED
@@ -4,6 +4,7 @@ require File.dirname(File.expand_path(__FILE__)) + '/../src/rappa'
|
|
4
4
|
|
5
5
|
Settings.use :commandline
|
6
6
|
|
7
|
+
Settings.define :file_name, :flag => 'n', :description => 'The name to call the archive e.g. rappa package -n package'
|
7
8
|
Settings.define :input_directory, :flag => 'i', :description => 'Input directory for package e.g. rappa package -i /path/to/project'
|
8
9
|
Settings.define :output_directory, :flag => 'o', :description => 'Output directory for package e.g. rappa package -o /path/to/output/location'
|
9
10
|
Settings.define :input_archive, :flag => 'a', :description => 'Input .rap archive for expand e.g. rappa expand -a /path/to/.rap'
|
@@ -13,6 +14,7 @@ Settings.define :url, :flag => 'u', :description => 'Url for deploy e.g. rappa d
|
|
13
14
|
Settings.define :api_key, :flag => 'k', :description => 'Api key for deploy e.g. rappa deploy -r /path/to/.rap -u http://host/api/deploy -k api_key'
|
14
15
|
Settings.define :excludes, :type => Array, :flag => 'e', :description => 'Files and folders to exclude from the rap e.g. rappa package -i /path/to/project -e file1,folder1'
|
15
16
|
|
17
|
+
|
16
18
|
Settings.resolve!
|
17
19
|
|
18
20
|
if Settings.rest.include?('package')
|
@@ -116,11 +118,12 @@ Usage:
|
|
116
118
|
Package:
|
117
119
|
packages a directory containing a rap.yml into a .rap archive
|
118
120
|
|
119
|
-
rappa package -i /path/to/project -o /path/to/output/location -e 'file1,folder1'
|
121
|
+
rappa package -i /path/to/project -o /path/to/output/location -n package -e 'file1,folder1'
|
120
122
|
|
121
123
|
-i is the input directory location (mandatory)
|
122
124
|
-o is the output directory location (mandatory)
|
123
125
|
-e is the list of files/folder to exclude from the rap (optional)
|
126
|
+
-n is the name of the archive to create - it defaults to the folder name if not supplied
|
124
127
|
|
125
128
|
Expand:
|
126
129
|
expands a packaged .rap archive
|
data/src/property_validator.rb
CHANGED
@@ -9,7 +9,7 @@ class PropertyValidator
|
|
9
9
|
|
10
10
|
def input_directory
|
11
11
|
unless @config[:input_directory].nil?
|
12
|
-
@config[:file_name]
|
12
|
+
@config[:file_name] ||= (@config[:input_directory] == '.') ? 'default' : @file.basename(@config[:input_directory])
|
13
13
|
end
|
14
14
|
check_property(@config[:input_directory], :input_directory)
|
15
15
|
input_directory = append_trailing_slash(@config[:input_directory])
|
data/src/rappa.rb
CHANGED
@@ -67,7 +67,7 @@ class Rappa
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def generate
|
70
|
-
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'
|
70
|
+
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'}
|
71
71
|
@file.open('sample.rap.yml', 'w') { |f| f.puts sample.to_yaml }
|
72
72
|
end
|
73
73
|
|
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.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|