Class: JSONCop::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/jsoncop/command.rb,
lib/jsoncop/command/install.rb,
lib/jsoncop/command/uninstall.rb

Direct Known Subclasses

Install, Uninstall

Defined Under Namespace

Classes: Install, Uninstall

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command

Returns a new instance of Command.



25
26
27
# File 'lib/jsoncop/command.rb', line 25

def initialize(argv)
  super
end

Class Method Details

.optionsObject



21
22
23
# File 'lib/jsoncop/command.rb', line 21

def self.options
  super
end

.run(argv) ⇒ Object

Raises:



15
16
17
18
19
# File 'lib/jsoncop/command.rb', line 15

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