Sha256: 9d92e9cfa0e3272170c61f608116d609e218f0ae4aed14c0b2386009e4f0bd8c

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'readline'
require 'ona'

unless File.exists? 'Onafile'
  abort 'Please create a file named:[Onafile] to start the shell.'
end

stack = Ona::Stack.new
eval File.read 'Onafile'
cli = Ona::Cli.new(stack)

loop do
  line = Readline.readline('Ona> ', true)
  if line == 'quit'
    puts 'bye.'
    break
  end
  cli.ls if line == 'ls'
  cli.help if line == 'help'
  cli.show line if line =~ /show/
  cli.setup line if line =~ /setup/
  cli.deploy line if line =~ /deploy/
  cli.ssh_root line if line =~ /ssh-root/
  cli.ssh_deploy line if line =~ /ssh-app/
  cli.http line if line =~ /http/
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ona-0.1.10 bin/ona
ona-0.1.9 bin/ona