Sha256: 498f39348f203439bff83c659260bad3a658f30dad299c488c3469b8a19c89ea

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 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') || (line == 'exit')
    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#/
  cli.ssh_deploy line if line =~ /ssh /
  cli.http line if line =~ /http/
  cli.key line if line =~ /key/
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ona-0.1.17 bin/ona
ona-0.1.16 bin/ona
ona-0.1.15 bin/ona
ona-0.1.14 bin/ona
ona-0.1.13 bin/ona
ona-0.1.12 bin/ona