Class: JSONCop::Command
- Inherits:
-
CLAide::Command
- Object
- CLAide::Command
- JSONCop::Command
- Defined in:
- lib/jsoncop/command.rb,
lib/jsoncop/command/install.rb,
lib/jsoncop/command/generate.rb,
lib/jsoncop/command/uninstall.rb
Defined Under Namespace
Classes: Generate, Install, Uninstall
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(argv) ⇒ Command
Returns a new instance of Command.
26 27 28 |
# File 'lib/jsoncop/command.rb', line 26 def initialize(argv) super end |
Class Method Details
.options ⇒ Object
22 23 24 |
# File 'lib/jsoncop/command.rb', line 22 def self. super end |
.run(argv) ⇒ Object
16 17 18 19 20 |
# File 'lib/jsoncop/command.rb', line 16 def self.run(argv) raise Informative, "JSONCop must run in project root folder which contains a xcodeproj file" \ unless Dir.glob("*.xcodeproj").count > 0 super(argv) end |