Class: GitWrapper::Commands::Init

Inherits:
Git
  • Object
show all
Defined in:
lib/git_wrapper/commands/init.rb

Instance Attribute Summary

Attributes inherited from Git

#error, #location_folder, #output

Instance Method Summary collapse

Methods inherited from Git

#execute, #initialize, #result, #success?

Constructor Details

This class inherits a constructor from GitWrapper::Commands::Git

Instance Method Details

#bareObject



5
6
7
8
# File 'lib/git_wrapper/commands/init.rb', line 5

def bare
  @bare = true
  self
end

#commandObject



10
11
12
# File 'lib/git_wrapper/commands/init.rb', line 10

def command
  "init#{@bare ? ' --bare' : ''}"
end