Class: Miron::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/miron/command.rb,
lib/miron/command/init.rb,
lib/miron/command/server.rb

Direct Known Subclasses

Init, Server

Defined Under Namespace

Classes: Init, Server

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command


24
25
26
# File 'lib/miron/command.rb', line 24

def initialize(argv)
  super
end

Class Method Details

.optionsObject


14
15
16
17
# File 'lib/miron/command.rb', line 14

def self.options
  [
  ].concat(super)
end

.run(argv) ⇒ Object


19
20
21
22
# File 'lib/miron/command.rb', line 19

def self.run(argv)
  help! 'You cannot run Miron as root.' if Process.uid == 0
  super(argv)
end