Class: Mumukit::Sync::Store::Github::GuideImport
- Defined in:
- lib/mumukit/sync/store/github/guide_import.rb
Instance Attribute Summary collapse
-
#guide ⇒ Object
Returns the value of attribute guide.
-
#repo ⇒ Object
Returns the value of attribute repo.
Attributes inherited from Operation
Instance Method Summary collapse
-
#initialize(options) ⇒ GuideImport
constructor
A new instance of GuideImport.
- #run_in_local_repo(dir, local_repo) ⇒ Object
Methods inherited from Operation
#before_run_in_local_repo, #can_run?, #ensure_post_commit_hook!, #run!, #with_local_repo
Constructor Details
#initialize(options) ⇒ GuideImport
Returns a new instance of GuideImport.
5 6 7 8 |
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 5 def initialize() super() @repo = [:repo] end |
Instance Attribute Details
#guide ⇒ Object
Returns the value of attribute guide.
3 4 5 |
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 3 def guide @guide end |
#repo ⇒ Object
Returns the value of attribute repo.
3 4 5 |
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 3 def repo @repo end |
Instance Method Details
#run_in_local_repo(dir, local_repo) ⇒ Object
10 11 12 |
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 10 def run_in_local_repo(dir, local_repo) GuideReader.new(dir, repo).read_guide! end |