shaddox 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 559f15c6102d82b8be5fcd487c4c934a92fa324d
4
- data.tar.gz: 33a1c5c5f865f1a43e19a5a34a5a5df039225dad
3
+ metadata.gz: 607de6c431a0a99e9d46795dbb1a7398fa9b723c
4
+ data.tar.gz: 0b881b9d51e528f02901baa12e46bc353c488f6b
5
5
  SHA512:
6
- metadata.gz: 1bc5bd5e5ac90145f671ada95c8ec56127be48365d0f438a65fc6eebde0437bf87d2a8b169cd20335d7cec07b5da87f9bcd074fe848c8596aeef810c4d292a15
7
- data.tar.gz: fef901fab44f29a430f69a52abe55dbbf6779fd8791df5007de69a95a30e51d32808dbf800cfe0f1c187b01dabb7956269c215d5c592eae8395f2ecf68fde988
6
+ metadata.gz: 4a527d58377d96bfb1be5c35db956a2e45eecf46ade974661498ec5f8904dc3019fb8c527770aecd576778c3840c835ad41d41c3ddb1562df563b3bb3d63be86
7
+ data.tar.gz: af855529336be854d5c71cb3c993bde88c012701bd1b59af1ea9f34321d30c0a2e230395d154d7fa315684a6fbe146ea7d79f3f208a47031c25ac4e22a3c9095
@@ -34,6 +34,7 @@ module Shaddox
34
34
 
35
35
  def invoke(task_key, target_key, opts = {})
36
36
  explode_target(target_key).each do |target|
37
+ raise "The target :#{target_key} could not be found. Please check your Doxfile.".red unless target
37
38
  info "Deploying to #{target_key}..."
38
39
  begin
39
40
  script_opts = {}
@@ -33,6 +33,7 @@ module Shaddox
33
33
 
34
34
  def cd(path, &block)
35
35
  current_path = Dir.pwd
36
+ mkdir(path)
36
37
  FileUtils.cd(path.exp_path)
37
38
  instance_eval(&block)
38
39
  FileUtils.cd(current_path)
@@ -30,7 +30,7 @@ end
30
30
  def cast(task_key)
31
31
  task = @config.tasks[task_key]
32
32
  if !task
33
- raise "The task :#{task_key} could not be found. Please check your Doxfile and try again."
33
+ raise "The task :#{task_key} could not be found. Please check your Doxfile and try again.".red
34
34
  end
35
35
  task.deps.each do |dep_key|
36
36
  cast(dep_key) if !@cast_tasks.include? dep_key
@@ -128,6 +128,12 @@ module Shaddox
128
128
  channel.send_data(gets.strip)
129
129
  end
130
130
  end
131
+ ch.on_extended_data do |ch, data|
132
+ $stderr.print data
133
+ if data =~ /^\[sudo\] password for user:/
134
+ channel.send_data(gets.strip)
135
+ end
136
+ end
131
137
  ch.on_request('exit-status') do |ch, data|
132
138
  exit_code = data.read_long
133
139
  end
@@ -1,3 +1,3 @@
1
1
  module Shaddox
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shaddox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshglendenning