Commit ffd6e993 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::IPC] Fix spelling

parent 87d76497
...@@ -3,7 +3,7 @@ module Pod ...@@ -3,7 +3,7 @@ module Pod
class IPC < Command class IPC < Command
self.abstract_command = true self.abstract_command = true
self.summary = 'Inter process communication' self.summary = 'Inter-process communication'
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
...@@ -18,13 +18,12 @@ module Pod ...@@ -18,13 +18,12 @@ module Pod
super super
end end
def run def validate!
if @path.nil? super
raise Informative, "Path not given." help! "A specification path is required." unless @path
elsif !File.exists?(@path) end
raise Informative, "The given path doesn't exists `#{@path}` not given."
end
def run
spec = Specification.from_file(@path) spec = Specification.from_file(@path)
UI.puts spec.to_yaml UI.puts spec.to_yaml
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment