Sha256: 30d37bec32b79f1c6d2fa694183cac1acb22cff2dd8506063cbd6a62e5d875f9
Contents?: true
Size: 578 Bytes
Versions: 4
Compression:
Stored size: 578 Bytes
Contents
require 'command' require 'commands/look' require 'lookfile' # Command 'lookfile init' implementation class SetRepository < Command def self.options_messages %( setrepo \t $ lookfile setrepo [repository_ssh] \t\t - Set lookfile repository to save files \t\t - repository_ssh: link ssh to repository ) end def self.command_name 'setrepo' end def self.parent Look end def self.run(argv) repository_ssh_name = argv.first Lookfile.set_repository(repository_ssh_name) puts "Setted repository to: #{repository_ssh_name}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lookfile-0.1.3 | lib/commands/set_repository.rb |
lookfile-0.1.2 | lib/commands/set_repository.rb |
lookfile-0.1.1 | lib/commands/set_repository.rb |
lookfile-0.1.0 | lib/commands/set_repository.rb |