Sha256: c413b70ea5056675f33c8c7e977ab0ace18d4ee2629099e314c6f9a4f198df70

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

module Lockness

  def self.start
    EnsureMasterKeyGitIgnored.new.ensure_master_key_git_ignored

    if ARGV.first == 'init' && ARGV.count == 1
      MasterKey.new.generate
    elsif ARGV.first == 'edit' && ARGV.count == 2
      Edit.new.edit
    elsif ARGV.first == 'show' && ARGV.count == 2
      Show.new.show
    elsif ARGV.first == 'help' && ARGV.count == 1 || ARGV.none?
      Help.show
    else
      puts "Unable to process arguments: '#{ARGV.join(' ')}'"
      exit 1
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lockness-0.1.0 lib/lockness.rb