Class: Middleman::Deploy::Strategies::Git::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-deploy/strategies/git/base.rb

Direct Known Subclasses

ForcePush, Submodule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build_dir, remote, branch) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/middleman-deploy/strategies/git/base.rb', line 8

def initialize(build_dir, remote, branch)
  self.branch     = branch
  self.build_dir  = build_dir
  self.remote     = remote
end

Instance Attribute Details

#branchObject

Returns the value of attribute branch.



6
7
8
# File 'lib/middleman-deploy/strategies/git/base.rb', line 6

def branch
  @branch
end

#build_dirObject

Returns the value of attribute build_dir.



6
7
8
# File 'lib/middleman-deploy/strategies/git/base.rb', line 6

def build_dir
  @build_dir
end

#remoteObject

Returns the value of attribute remote.



6
7
8
# File 'lib/middleman-deploy/strategies/git/base.rb', line 6

def remote
  @remote
end

Instance Method Details

#processObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/middleman-deploy/strategies/git/base.rb', line 14

def process
  raise NotImplementedError
end