Class: GitFit::RemoteConfigCLI

Inherits:
Thor
  • Object
show all
Includes:
RemoteHelpers
Defined in:
lib/git_fit/cli/remote_cli.rb

Instance Method Summary collapse

Methods included from RemoteHelpers

#detect_repo, #gh

Instance Method Details

#get(key) ⇒ Object



56
57
58
# File 'lib/git_fit/cli/remote_cli.rb', line 56

def get(key)
  puts gh("variable", "get", key)
end

#listObject



46
47
48
# File 'lib/git_fit/cli/remote_cli.rb', line 46

def list
  puts gh("variable", "list")
end

#set(key, value) ⇒ Object



51
52
53
# File 'lib/git_fit/cli/remote_cli.rb', line 51

def set(key, value)
  puts gh("variable", "set", key, "--body", value)
end