arethusa-cli 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arethusa/cli/version.rb +1 -1
- data/lib/arethusa/cli.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11fcf19408f38b511c33177560caae15e237f36f
|
4
|
+
data.tar.gz: b167c4e8f49a6519b7b2becac5f17ba22f150a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ff6b90537de8daca6860d0f818858682738cd1fadaa1f183d59314d3db98f4f7a940f1f9fb9a1fad7aa331e16915eb33fd4ad788574bd502ed0800dc8aabd2
|
7
|
+
data.tar.gz: 3309e0d573736ead9ed4011aae20c099967be683a7895afd5564504579aac8bc74c8decec91face04788adf0f1a1383f0921b618091978d2ea92a4fc6958c3a3
|
data/lib/arethusa/cli/version.rb
CHANGED
data/lib/arethusa/cli.rb
CHANGED
@@ -42,6 +42,8 @@ EOF
|
|
42
42
|
desc: 'Options to pass to the ssh command'
|
43
43
|
method_option :file, aliases: '-f',
|
44
44
|
desc: 'Archive file to use - builds a new one by default'
|
45
|
+
method_option :small, aliases: '-s', type: :boolean, default: false,
|
46
|
+
desc: 'Deploys only Arethusa files without third party code'
|
45
47
|
method_option :minify, aliases: '-m', type: :boolean, default: true,
|
46
48
|
desc: 'Minifies Arethusa before building'
|
47
49
|
def deploy(address, directory)
|
@@ -50,6 +52,8 @@ EOF
|
|
50
52
|
@ssh_options = options[:options]
|
51
53
|
@archive = options[:file]
|
52
54
|
|
55
|
+
@small = options[:small]
|
56
|
+
|
53
57
|
minify if options[:minify] &! @archive
|
54
58
|
execute
|
55
59
|
say_status(:deployed, "at #{@address} - #{@directory}")
|
@@ -92,7 +96,11 @@ EOF
|
|
92
96
|
end
|
93
97
|
|
94
98
|
def folders_to_deploy
|
95
|
-
|
99
|
+
if @small
|
100
|
+
%w{ app dist favicon.ico }
|
101
|
+
else
|
102
|
+
%w{ app bower_components dist vendor favicon.ico }
|
103
|
+
end
|
96
104
|
end
|
97
105
|
|
98
106
|
def archive_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arethusa-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LFDM
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|