Class: Arli::Commands::Bundle

Inherits:
Base
  • Object
show all
Defined in:
lib/arli/commands/bundle.rb

Constant Summary

Constants included from Helpers::Output

Helpers::Output::CHAR_FAILURE, Helpers::Output::CHAR_SUCCESS

Instance Attribute Summary collapse

Attributes inherited from Base

#config, #name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #library_path, #runtime, #temp_path

Methods included from Helpers::Output

#___, #__p, #__pf, #__pt, #abort?, #action_fail, #action_ok, #backup?, #cursor, #debug, #debug?, disable!, enable!, enabled?, #error, #fuck, #header, #hr, #indent_cursor, #info, #ok, #overwrite?, #print_action_failure, #print_action_starting, #print_action_success, #print_target_dir, #quiet?, #raise_invalid_arli_command!, #report_exception, #verbose?

Constructor Details

This class inherits a constructor from Arli::Commands::Base

Instance Attribute Details

#arlifileObject

Returns the value of attribute arlifile.



13
14
15
# File 'lib/arli/commands/bundle.rb', line 13

def arlifile
  @arlifile
end

#lock_fileObject

Returns the value of attribute lock_file.



13
14
15
# File 'lib/arli/commands/bundle.rb', line 13

def lock_file
  @lock_file
end

Instance Method Details

#paramsObject



21
22
23
24
25
# File 'lib/arli/commands/bundle.rb', line 21

def params
  if arlifile&.libraries
    "libraries: \n • " + arlifile.libraries.map(&:name).join("\n • ")
  end
end

#runObject



27
28
29
# File 'lib/arli/commands/bundle.rb', line 27

def run
  install_with_arli_file
end

#setupObject



15
16
17
18
19
# File 'lib/arli/commands/bundle.rb', line 15

def setup
  super
  self.arlifile = Arli::ArliFile.new(config: config)
  self.lock_file = Arli::Lock::File.new(config: config, arlifile: arlifile)
end