Class: VimPK::Commands::Update
- Inherits:
-
Object
- Object
- VimPK::Commands::Update
- Includes:
- VimPK::Colorizer
- Defined in:
- lib/vimpk/commands/update.rb
Instance Attribute Summary collapse
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#logs ⇒ Object
readonly
Returns the value of attribute logs.
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(options) ⇒ Update
Returns a new instance of Update.
8 9 10 11 12 13 14 |
# File 'lib/vimpk/commands/update.rb', line 8 def initialize() @pack_dir = File.(.path) @logs = Queue.new @pool = ThreadPool.new @plugins = Dir.glob(File.join(@pack_dir, "*", "{start,opt}", "*", ".git")).sort.map(&File.method(:dirname)) @jobs = [] end |
Instance Attribute Details
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
6 7 8 |
# File 'lib/vimpk/commands/update.rb', line 6 def jobs @jobs end |
#logs ⇒ Object (readonly)
Returns the value of attribute logs.
6 7 8 |
# File 'lib/vimpk/commands/update.rb', line 6 def logs @logs end |
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
6 7 8 |
# File 'lib/vimpk/commands/update.rb', line 6 def plugins @plugins end |