arethusa-cli 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf3fe6efd000c674f22e5a9df309516a978029dc
4
- data.tar.gz: f4bd1cbad4ab82ed0b1af12e81cdf36c22008413
3
+ metadata.gz: 11fcf19408f38b511c33177560caae15e237f36f
4
+ data.tar.gz: b167c4e8f49a6519b7b2becac5f17ba22f150a54
5
5
  SHA512:
6
- metadata.gz: 09baafa70abaa3ac6d61a8deb8b9359f78d992a14075f4c11397d08d4332fe6872bdd54c07b42297070dc97e375612cfb7f634cc9b07606f797c419be4d0b802
7
- data.tar.gz: 3a04a90f36caa2082feba8c21662307da99ef2a7760f41a82e5dc050034e527d93a764c5585900a4914ea685b70b08f349f81af16730d08f825e9de61445b614
6
+ metadata.gz: a9ff6b90537de8daca6860d0f818858682738cd1fadaa1f183d59314d3db98f4f7a940f1f9fb9a1fad7aa331e16915eb33fd4ad788574bd502ed0800dc8aabd2
7
+ data.tar.gz: 3309e0d573736ead9ed4011aae20c099967be683a7895afd5564504579aac8bc74c8decec91face04788adf0f1a1383f0921b618091978d2ea92a4fc6958c3a3
@@ -1,5 +1,5 @@
1
1
  module Arethusa
2
2
  class CLI
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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
- %w{ app bower_components dist vendor favicon.ico }
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.7
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-25 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler