Merge pull request #1896 from vitorgalvao/cleanups-internal-stanzas
Cask: cleanups internal stanzas
This commit is contained in:
commit
4459669617
@ -27,7 +27,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.help
|
def self.help
|
||||||
"Dump the given Cask in YAML format"
|
"dump the given Cask in YAML format"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -16,7 +16,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.help
|
def self.help
|
||||||
"Print help strings for unstable internal-use commands"
|
"print help strings for unstable internal-use commands"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -50,12 +50,12 @@ module Hbc
|
|||||||
:uninstall_postflight,
|
:uninstall_postflight,
|
||||||
]
|
]
|
||||||
|
|
||||||
def self.run(*arguments)
|
def self.run(*args)
|
||||||
table = arguments.include? "--table"
|
table = args.include? "--table"
|
||||||
quiet = arguments.include? "--quiet"
|
quiet = args.include? "--quiet"
|
||||||
format = :to_yaml if arguments.include? "--yaml"
|
format = :to_yaml if args.include? "--yaml"
|
||||||
format = :inspect if arguments.include? "--inspect"
|
format = :inspect if args.include? "--inspect"
|
||||||
cask_tokens = arguments.reject { |arg| arg.chars.first == "-" }
|
cask_tokens = cask_tokens_from(args)
|
||||||
stanza = cask_tokens.shift.to_sym
|
stanza = cask_tokens.shift.to_sym
|
||||||
cask_tokens = Hbc.all_tokens if cask_tokens.empty?
|
cask_tokens = Hbc.all_tokens if cask_tokens.empty?
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.help
|
def self.help
|
||||||
"Extract and render a specific stanza for the given Casks"
|
"extract and render a specific stanza for the given Casks"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user