Class: Bard::CLI::Data

Inherits:
Struct
  • Object
show all
Defined in:
lib/bard/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bardObject

Returns the value of attribute bard

Returns:

  • (Object)

    the current value of bard



2
3
4
# File 'lib/bard/data.rb', line 2

def bard
  @bard
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



2
3
4
# File 'lib/bard/data.rb', line 2

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



2
3
4
# File 'lib/bard/data.rb', line 2

def to
  @to
end

Instance Method Details

#callObject



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