mofa 0.3.10 → 0.3.11

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.
data/lib/mofa/mofa_yml.rb CHANGED
@@ -9,7 +9,7 @@ class MofaYml
9
9
  def self.load_from_file(path_to_mofayml, cookbook)
10
10
  mfyml = MofaYml.new
11
11
  mfyml.cookbook = cookbook
12
- puts "Loading .mofa.yml/.mofa.local.yml from path #{path_to_mofayml}..."
12
+ # puts "Loading .mofa.yml/.mofa.local.yml from path #{path_to_mofayml}..."
13
13
  if File.exist?(path_to_mofayml)
14
14
  mfyml.parse_and_load(path_to_mofayml)
15
15
  end
@@ -35,8 +35,8 @@ class MofaYml
35
35
  file_contents = File.read(path_to_mofayml)
36
36
  file_contents.gsub!(/__ENV_COOKBOOK__/, @cookbook.name)
37
37
  @yml = YAML.load(file_contents)
38
- puts "YAML is now:"
39
- puts @yml.inspect
38
+ # puts "YAML is now:"
39
+ # puts @yml.inspect
40
40
  @yml
41
41
  end
42
42
  end
@@ -196,7 +196,11 @@ class ProvisionCmd < MofaCmd
196
196
  end
197
197
  out = ssh_exec!(ssh, "sudo chown -R #{Mofa::Config.config['ssh_user']}.#{Mofa::Config.config['ssh_user']} #{solo_dir}")
198
198
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
199
- out = ssh_exec!(ssh, "sudo mkdir -p /var/lib/mofa && sudo ln -s #{solo_dir} /var/lib/mofa/last_run && sudo echo #{cookbook.pkg_name} > /var/lib/mofa/last_cookbook && sudo echo #{chef_solo_runs[hostname]['status']} > /var/lib/mofa/last_status")
199
+ out = ssh_exec!(ssh, "sudo mkdir -p /var/lib/mofa && sudo ln -s #{solo_dir} /var/lib/mofa/last_run")
200
+ puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
201
+ out = ssh_exec!(ssh, "echo #{cookbook.pkg_name} | sudo tee /var/lib/mofa/last_cookbook")
202
+ puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
203
+ out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']}| sudo tee /var/lib/mofa/last_status")
200
204
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
201
205
  end
202
206
  end
data/lib/mofa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: