Sha256: effa3036ff8b3dc87d5f1da69c91c7b51bc8c69b5b33c9e0b6589325439ddffa
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'gritano' require 'etc' def line(text, cols) "% #{text}#{' ' * (cols - (text.length + 3))}%" end def table(lines) cols = HighLine.new.output_cols (['%' * cols] + lines.map { |l| line(l, cols) } + ['%' * cols]).join("\n") end begin load File.join(Etc.getpwuid.dir, '.gritano/local.gritano') rescue LoadError => e unless ARGV[0] == 'init' puts table(['WARNING!', 'GRITANO IS NOT INSTALLED']).color(:yellow) end end Gritano::CLI::Console::Local.start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gritano-2.0.2 | bin/gritano |
gritano-2.0.1 | bin/gritano |