wocker 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/wocker/cli/exec_command.rb +3 -6
- data/lib/wocker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3321bb7f9b48fa0338a22e25d60bcf04605a5ac6ee975eaf4ce0658bc210ce
|
4
|
+
data.tar.gz: 81be38d6ccffeddf4791f8bed1e5f68827afb6f881842533243d34707d9c55ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c061ee0d87d9483d6cfc51f7d4e974bc04889db84310742a76e2d3de015341f004c541fd55cf88298b37d991d09aabaa70987d53bdc00708dc687dab5b9fe3
|
7
|
+
data.tar.gz: 57ee73b3c4134623eff8bc9693e14f7ccb491b6e8fedd52a823aa19d7f596433879855ccb10be531ab46e192761c62b9ce1e13794641f83e2d8be125902631e5
|
data/Gemfile.lock
CHANGED
@@ -4,15 +4,12 @@ module Wocker
|
|
4
4
|
module Cli
|
5
5
|
class ExecCommand < Clamp::Command
|
6
6
|
parameter "COMMAND ...", "command"
|
7
|
+
option "--workdir", "WORKDIR", "workdir"
|
7
8
|
|
8
9
|
def execute
|
9
10
|
command_list.insert 0, "cd"
|
10
|
-
|
11
|
-
|
12
|
-
else
|
13
|
-
"/vagrant"
|
14
|
-
end
|
15
|
-
command_list.insert 1, "#{workdir};"
|
11
|
+
current_workdir = workdir || Wockerfile.workdir || "/vagrant"
|
12
|
+
command_list.insert 1, "#{current_workdir};"
|
16
13
|
|
17
14
|
cmd = command_list.join " "
|
18
15
|
Wocker::Vagrant.run "winrm", "-c", cmd
|
data/lib/wocker/version.rb
CHANGED