Sha256: 63ded697af05fcdc7ada6d21078d41fdb9abc8c29ca186c09ad2bcf0b9731a66
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 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 line if line =~ /ssh/ end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ona-0.1.5 | bin/ona |
ona-0.1.4 | bin/ona |
ona-0.1.3 | bin/ona |