xway 0.0.2.beta → 0.0.3.beta

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,6 +26,18 @@ Or install it yourself as:
26
26
 
27
27
  $ xway
28
28
 
29
+ ### Recommended config settings
30
+
31
+ You can store default parameters like `app.name` and `app.manifest` in a file named `.xway` located in your current working dir.
32
+
33
+ For an example just have a look at the `appway-example` folder.
34
+
35
+ $ cd appway-example
36
+
37
+ Here you can just redeploy the preconfigured app like so:
38
+
39
+ $ xway redeploy
40
+
29
41
  ## Contributing
30
42
 
31
43
  1. Fork it
@@ -0,0 +1,3 @@
1
+ app:
2
+ name: example
3
+ manifest: appway-example.json
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "example",
3
+ "repo": {
4
+ "url": "git://github.com/threez/appway-example.git",
5
+ "branch": "master"
6
+ },
7
+ "packages": {
8
+ },
9
+ "user": "www-data",
10
+ "group": "www-data",
11
+ "domain": [
12
+ "^example.*",
13
+ "^example.local$"
14
+ ],
15
+ "install": [
16
+ "npm install"
17
+ ],
18
+ "scale": {
19
+ "web": 2
20
+ }
21
+ }
@@ -62,7 +62,7 @@ module Xway
62
62
  def require_options options, *keys
63
63
  missing_keys = []
64
64
  keys.each do |key|
65
- if !options || options[key] == nil || options[key] == ''
65
+ if !options.is_a?(Hash) || options[key] == nil || options[key] == ''
66
66
  missing_keys << key
67
67
  end
68
68
  end
@@ -1,3 +1,3 @@
1
1
  module Xway
2
- VERSION = "0.0.2.beta"
2
+ VERSION = "0.0.3.beta"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.beta
4
+ version: 0.0.3.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -172,6 +172,8 @@ files:
172
172
  - LICENSE.txt
173
173
  - README.md
174
174
  - Rakefile
175
+ - appway-example/.xway
176
+ - appway-example/appway-example.json
175
177
  - bin/xway
176
178
  - lib/xway.rb
177
179
  - lib/xway/api.rb