lib/safe_pusher/cli.rb in safe_pusher-0.5.3 vs lib/safe_pusher/cli.rb in safe_pusher-0.5.4
- old
+ new
@@ -65,10 +65,10 @@
@services ||= SafePusher.configuration.services
end
def shortcut_to_command
@shortcut_to_command ||= YAML
- .load_file(File.expand_path('config/commands.yml'))
+ .load_file("#{__dir__}/../../config/commands.yml")
.reduce({}) { |o, (k, v)| o.update(v['shortcut'] => k) }
end
end
end