derelict 0.3.3.travis.105 → 0.3.3.travis.107
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 +8 -8
- data/lib/derelict/virtual_machine.rb +6 -0
- data/spec/derelict/virtual_machine_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDA2NGEwOWUxYzg0Yjg1Mjg4MGJkZTRlNDg5OWNlZDQ5NzI2MGZmMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTExMDZiNDRiZmQ4ZjA2ZDc1Y2M2MWU4ZDZlZGJlOWMwM2FmODBmNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzMwMDNiMWI2OGIzN2U1YzU3ZDg3N2Q2MjFkZGIyMDRkOTRlM2ZmZjQ5ZjA3
|
10
|
+
Y2RiMzM3YjFmNTIxOTYyOTViZjUxZGFmNjk3MmY1M2ViOTA5ODFhNGMwYmY5
|
11
|
+
OTA2YTg4ZGI0ZTA2NWUwNzk5ZDEyNDcwNTBmZjBiMGZlNzlmZmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGI5MTVhZjhjMmQ2ZDYyYzlmMjkyYmM2MTVkZTdhOGQyYzdhYmVlY2M1ZWM1
|
14
|
+
MWFlY2U4NjU1MzI2N2EyMGM0NmViNmZmY2Q1YzdmOGQ1MzU1YzlkZTliMGM3
|
15
|
+
ZDJjYTAzNDVlYjg3NGNiMDRiZDQ3YmU3MGI4MjRlYTZkM2M0ZTk=
|
@@ -132,6 +132,8 @@ module Derelict
|
|
132
132
|
# * options: A Hash of options, with the following optional keys:
|
133
133
|
# * log: Logs the output of the command if true
|
134
134
|
# (defaults to false)
|
135
|
+
# * log_mode: Controls how commands are logged (one of
|
136
|
+
# either :chars or :lines, defaults to :lines)
|
135
137
|
# * color: Uses color in the log output (defaults to
|
136
138
|
# false, only relevant if log is true)
|
137
139
|
# * provider: The Vagrant provider to use, one of
|
@@ -146,6 +148,10 @@ module Derelict
|
|
146
148
|
arguments << options[:provider]
|
147
149
|
end
|
148
150
|
|
151
|
+
if options[:log_mode]
|
152
|
+
arguments << {:mode => options[:log_mode]}
|
153
|
+
end
|
154
|
+
|
149
155
|
# Set up the block to use when executing -- if logging is
|
150
156
|
# enabled, use a block that logs the output; otherwise no block.
|
151
157
|
block = options[:log] ? shell_log_block : nil
|
@@ -164,6 +164,12 @@ describe Derelict::VirtualMachine do
|
|
164
164
|
let(:args) { [:up, name, '--color'] }
|
165
165
|
it { should be result }
|
166
166
|
end
|
167
|
+
|
168
|
+
context "in chars mode" do
|
169
|
+
let(:options) { {:log => true, :log_mode => :chars} }
|
170
|
+
let(:args) { [:up, name, {:mode => :chars}] }
|
171
|
+
it { should be result }
|
172
|
+
end
|
167
173
|
end
|
168
174
|
end
|
169
175
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derelict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.3.travis.
|
4
|
+
version: 0.3.3.travis.107
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Feehan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log4r
|