Class: Imagen::RemoteBuilder
- Inherits:
-
Object
- Object
- Imagen::RemoteBuilder
- Defined in:
- lib/imagen/remote_builder.rb
Overview
RemoteBuilder is responsible for wrapping all operations to create code structure for a remote git repository.
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#repo_url ⇒ Object
readonly
Returns the value of attribute repo_url.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(repo_url) ⇒ RemoteBuilder
constructor
A new instance of RemoteBuilder.
Constructor Details
#initialize(repo_url) ⇒ RemoteBuilder
Returns a new instance of RemoteBuilder.
12 13 14 15 |
# File 'lib/imagen/remote_builder.rb', line 12 def initialize(repo_url) @repo_url = repo_url @dir = Dir.mktmpdir end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
10 11 12 |
# File 'lib/imagen/remote_builder.rb', line 10 def dir @dir end |
#repo_url ⇒ Object (readonly)
Returns the value of attribute repo_url.
10 11 12 |
# File 'lib/imagen/remote_builder.rb', line 10 def repo_url @repo_url end |