Class: Hubeye::Server::Strategy::AddRepo

Inherits:
Object
  • Object
show all
Defined in:
lib/server/hubeye_server.rb

Instance Method Summary collapse

Instance Method Details

#callObject



398
399
400
401
402
403
404
405
406
407
# File 'lib/server/hubeye_server.rb', line 398

def call
  if @options and @options[:pwd]
    @session.repo_name = File.dirname(File.expand_path('.'))
  elsif @options and @options[:fullpath]
    @session.username, @session.repo_name = @input.split('/')
  else
    @session.repo_name = @input
  end
  add_repo
end