Sha256: f21c0686dd233aa96bcf7c75223fbdc73a550fdb48099c8019785f0338dd064c

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

require 'commander/import'

program :name,        'Network Executive'
program :version,     NetworkExecutive::VERSION
program :description, 'An experimental application used to drive displays hung around an office.  '

command :new do |c|
  c.syntax      = 'net_exec new [path]'
  c.description = 'Create a new Network Executive installation.'

  c.action do |args, options|
    require 'network_executive/commands/application'

    NetworkExecutive::Application.new( args.first ).build_app
  end
end

command :server do |c|
  c.syntax      = 'net_exec server'
  c.description = 'Runs the Network Executive server.'

  c.action do |args, options|
    require 'network_executive/commands/server'

    ARGV.shift

    NetworkExecutive::Server.start!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
network_executive-0.0.1.alpha.1 lib/network_executive/cli.rb