threeman 0.2.0 → 0.2.1

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: 765f19786b13a7cb5a023f159e8d430d1a0e75a3
4
- data.tar.gz: f86d28d400765992a9de7df2323f1b414f30b493
3
+ metadata.gz: f1e9986865f5793ca44df0526752032ba752ead8
4
+ data.tar.gz: 2c67b7d65d24fde54a34edaecc1c948ca6462915
5
5
  SHA512:
6
- metadata.gz: ddbce7064da10dfb54e0c9b5951c0432a185e015b08de43991b310d66bca1f68ce8220f78cf348db3262b6d5a49ec49829cc58eb288775dbd81ed944c16182b4
7
- data.tar.gz: 2150184f85c6c89adc40105462d305db012073c82102bbb910691c03d2142ae5f85b78550b0c4501ad77b6d1a32913fd55a72edf8f4c931cef805bb2d0ce96ed
6
+ metadata.gz: 1f8d44ceb95cf54d61d99b604c6d741b12c56e2569d42e74cdb6f7b7580ef5d44ce5475cc6f9bd27deff532114d43d5451f863d79118e4680d5e5ad2f4d58761
7
+ data.tar.gz: 8f00316bc0cf43729364a03ae1c1f1c453cc0686be6badf0b370bbaf50ac12e2ca4844c84152c518625acdcd94b68328d401553a7f1b3dd438df162afccdf01d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.1 - March 30, 2016
2
+
3
+ * Split cd'ing into the workdir out of the bash script, so that if the process terminates you'll wind up in the right directory
4
+
1
5
  # 0.2.0 - March 29, 2016
2
6
 
3
7
  * Refactor into multiple frontends
@@ -11,10 +11,7 @@ module Threeman
11
11
  end
12
12
 
13
13
  def bash_script
14
- [
15
- "cd #{workdir}",
16
- command
17
- ].join(" ; ")
14
+ command
18
15
  end
19
16
  end
20
17
  end
@@ -27,7 +27,9 @@ module Threeman
27
27
 
28
28
  private
29
29
  def run_command(session, command)
30
- session.write(text: "bash -c #{Shellwords.escape bash_script(command)}")
30
+ cd_cmd = "cd #{Shellwords.escape command.workdir}"
31
+ bash_cmd = "bash -c #{Shellwords.escape bash_script(command)}"
32
+ session.write(text: [cd_cmd, bash_cmd].join("\n"))
31
33
  end
32
34
  end
33
35
  end
@@ -28,6 +28,7 @@ module Threeman
28
28
  end
29
29
 
30
30
  sleep 0.3
31
+ terminal_controller.keystroke("cd #{Shellwords.escape command.workdir}\n")
31
32
  terminal_controller.keystroke(bash_cmd(command) + "\n")
32
33
  end
33
34
  end
@@ -1,3 +1,3 @@
1
1
  module Threeman
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threeman
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
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman