class Bundler::ParallelInstaller::SpecInstallation
属性
error[RW]
full_name[RW]
name[RW]
post_install_message[RW]
spec[RW]
state[RW]
公共类方法
new(spec) 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 10 def initialize(spec) @spec = spec @name = spec.name @full_name = spec.full_name @state = :none @post_install_message = "" @error = nil end
公共实例方法
all_dependencies() 单击以切换源代码
表示所有依赖项
# File bundler/installer/parallel_installer.rb, line 56 def all_dependencies @spec.dependencies end
dependencies() 单击以切换源代码
仅表示非开发依赖项,即它本身且在总列表中的依赖项。
# File bundler/installer/parallel_installer.rb, line 51 def dependencies @dependencies ||= all_dependencies.reject {|dep| ignorable_dependency? dep } end
dependencies_installed?(installed_specs) 单击以切换源代码
检查已安装的依赖项与规范的依赖项,以确保所需的依赖项已安装。
# File bundler/installer/parallel_installer.rb, line 45 def dependencies_installed?(installed_specs) dependencies.all? {|d| installed_specs.include? d.name } end
enqueued?() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 23 def enqueued? state == :enqueued end
failed?() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 27 def failed? state == :failed end
has_post_install_message?() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 35 def has_post_install_message? !post_install_message.empty? end
ignorable_dependency?(dep) 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 39 def ignorable_dependency?(dep) dep.type == :development || dep.name == @name end
installed?() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 19 def installed? state == :installed end
ready_to_enqueue?() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 31 def ready_to_enqueue? state == :none end
to_s() 单击以切换源代码
# File bundler/installer/parallel_installer.rb, line 60 def to_s "#<#{self.class} #{full_name} (#{state})>" end