Skip to content

Commit

Permalink
Merge pull request #85 from alces-software/develop
Browse files Browse the repository at this point in the history
Update master in preparation of version 1.0.1
  • Loading branch information
DavidMarchant authored Feb 19, 2019
2 parents 8272892 + 0e25003 commit 7435a91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/inventoryware/commands/delete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run
else
node_msg = "#{prefix} #{node_locations[0]} - proceed? (y/n)"
end
if agree(node_msg)
if $terminal.agree(node_msg)
node_locations.each { |node| FileUtils.rm node }
end
else
Expand Down
2 changes: 1 addition & 1 deletion lib/inventoryware/commands/modifys/location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run
# Get input REPL style
fields.each do |field, hash|
name = hash['name'] ? hash['name'] : field
value = ask("Enter a #{name} or press enter to skip")
value = $terminal.ask("Enter a #{name} or press enter to skip")
hash['value'] = value unless value == ''
end

Expand Down
4 changes: 2 additions & 2 deletions lib/inventoryware/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def open
end
rescue Psych::SyntaxError
raise ParseError, <<-ERROR.chomp
Error parsing yaml in #{node_location} - aborting
Error parsing yaml in #{@location} - aborting
ERROR
end
# condition for if the .yaml is empty
unless node_data
raise ParseError, <<-ERROR.chomp
Yaml in #{node_location} is empty - aborting
Yaml in #{@location} is empty - aborting
ERROR
end
@data = node_data.values[0]
Expand Down

0 comments on commit 7435a91

Please sign in to comment.