Class: HeyDan::Source
- Inherits:
-
Thor
- Object
- Thor
- HeyDan::Source
- Defined in:
- lib/heydan/cli.rb
Instance Method Summary collapse
- #add(github_link) ⇒ Object
- #build(folder = nil, name = nil, variable = nil) ⇒ Object
- #new(folder, name, variable = nil) ⇒ Object
- #sync ⇒ Object
- #update(name) ⇒ Object
Instance Method Details
#add(github_link) ⇒ Object
14 15 16 17 |
# File 'lib/heydan/cli.rb', line 14 def add(github_link) HeyDan::helper_text('sources_add') HeyDan::Sources.add(github_link) end |
#build(folder = nil, name = nil, variable = nil) ⇒ Object
33 34 35 36 37 |
# File 'lib/heydan/cli.rb', line 33 def build(folder=nil, name=nil, variable=nil) HeyDan::helper_text('sources_build') HeyDan. = HeyDan::Sources.build(folder, name, variable) end |
#new(folder, name, variable = nil) ⇒ Object
26 27 28 29 |
# File 'lib/heydan/cli.rb', line 26 def new(folder, name, variable=nil) HeyDan::helper_text('sources_new') HeyDan::Sources.create(folder, name, variable) end |
#sync ⇒ Object
8 9 10 11 |
# File 'lib/heydan/cli.rb', line 8 def sync() HeyDan::helper_text('sources_sync') HeyDan::Sources.sync end |
#update(name) ⇒ Object
20 21 22 23 |
# File 'lib/heydan/cli.rb', line 20 def update(name) HeyDan::helper_text('sources_update') HeyDan::Sources.update(name) end |