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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38dcece4d9f2ed8dd4e5af61d2b53d4a3f7e51fe9ee5f81cc387d18f2c1cfc8f
4
- data.tar.gz: e8a352a9dc447a79d84d44037ecae40097be8ca3c67b6a050b89f09320c93612
3
+ metadata.gz: 2f3321bb7f9b48fa0338a22e25d60bcf04605a5ac6ee975eaf4ce0658bc210ce
4
+ data.tar.gz: 81be38d6ccffeddf4791f8bed1e5f68827afb6f881842533243d34707d9c55ed
5
5
  SHA512:
6
- metadata.gz: 1bfe5f0b3eb772eebeddb8d0e29b6baf257554985b5e13ecc7627748f5ec9de137874b7c07bd8c6cb9aa453c22d5b45c378908270b8a75a2a504aba4e72bfb4e
7
- data.tar.gz: 36797d42577056e749c41d06a911fe24480949c2b83bc1f4135bc0db155022965b76f5af913e80ce480b7cfdd4a43895c6f5fc3f8ba4c764d10e309061b0b159
6
+ metadata.gz: a6c061ee0d87d9483d6cfc51f7d4e974bc04889db84310742a76e2d3de015341f004c541fd55cf88298b37d991d09aabaa70987d53bdc00708dc687dab5b9fe3
7
+ data.tar.gz: 57ee73b3c4134623eff8bc9693e14f7ccb491b6e8fedd52a823aa19d7f596433879855ccb10be531ab46e192761c62b9ce1e13794641f83e2d8be125902631e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wocker (0.2.0)
4
+ wocker (0.2.1)
5
5
  clamp
6
6
 
7
7
  GEM
@@ -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
- workdir = if Wockerfile.workdir
11
- Wockerfile.workdir
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
@@ -1,3 +1,3 @@
1
1
  module Wocker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula