Class: Bard::CLI::Data
- Inherits:
-
Struct
- Object
- Struct
- Bard::CLI::Data
- Defined in:
- lib/bard/data.rb
Instance Attribute Summary collapse
-
#bard ⇒ Object
Returns the value of attribute bard.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#bard ⇒ Object
Returns the value of attribute bard
2 3 4 |
# File 'lib/bard/data.rb', line 2 def @bard end |
#from ⇒ Object
Returns the value of attribute from
2 3 4 |
# File 'lib/bard/data.rb', line 2 def from @from end |
#to ⇒ Object
Returns the value of attribute to
2 3 4 |
# File 'lib/bard/data.rb', line 2 def to @to end |
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bard/data.rb', line 3 def call if to == "local" data_pull_db from.to_sym data_pull_assets from.to_sym end if from == "local" data_push_db to.to_sym data_push_assets to.to_sym end end |