Class: VPM::Commands::Setup
- Inherits:
-
Object
- Object
- VPM::Commands::Setup
- Defined in:
- lib/vpm/commands/setup.rb
Instance Attribute Summary collapse
-
#autoload_dir_creator ⇒ Object
Returns the value of attribute autoload_dir_creator.
-
#bundle_dir_creator ⇒ Object
Returns the value of attribute bundle_dir_creator.
-
#pathogen_cloner ⇒ Object
Returns the value of attribute pathogen_cloner.
-
#pathogen_file_mover ⇒ Object
Returns the value of attribute pathogen_file_mover.
-
#rc_file_creator ⇒ Object
Returns the value of attribute rc_file_creator.
-
#rc_file_injector ⇒ Object
Returns the value of attribute rc_file_injector.
Instance Method Summary collapse
- #call(args = nil) ⇒ Object
-
#initialize ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize ⇒ Setup
Returns a new instance of Setup.
9 10 11 12 13 14 15 16 |
# File 'lib/vpm/commands/setup.rb', line 9 def initialize self.pathogen_cloner = ClonePathogen self.bundle_dir_creator = CreateBundleDir self.autoload_dir_creator = CreateAutoloadDir self.pathogen_file_mover = MovePathogenFile self.rc_file_creator = CreateOurRCFile self.rc_file_injector = InjectOurLoadScript end |
Instance Attribute Details
#autoload_dir_creator ⇒ Object
Returns the value of attribute autoload_dir_creator.
4 5 6 |
# File 'lib/vpm/commands/setup.rb', line 4 def autoload_dir_creator @autoload_dir_creator end |
#bundle_dir_creator ⇒ Object
Returns the value of attribute bundle_dir_creator.
3 4 5 |
# File 'lib/vpm/commands/setup.rb', line 3 def bundle_dir_creator @bundle_dir_creator end |
#pathogen_cloner ⇒ Object
Returns the value of attribute pathogen_cloner.
2 3 4 |
# File 'lib/vpm/commands/setup.rb', line 2 def pathogen_cloner @pathogen_cloner end |
#pathogen_file_mover ⇒ Object
Returns the value of attribute pathogen_file_mover.
5 6 7 |
# File 'lib/vpm/commands/setup.rb', line 5 def pathogen_file_mover @pathogen_file_mover end |
#rc_file_creator ⇒ Object
Returns the value of attribute rc_file_creator.
6 7 8 |
# File 'lib/vpm/commands/setup.rb', line 6 def rc_file_creator @rc_file_creator end |
#rc_file_injector ⇒ Object
Returns the value of attribute rc_file_injector.
7 8 9 |
# File 'lib/vpm/commands/setup.rb', line 7 def rc_file_injector @rc_file_injector end |
Instance Method Details
#call(args = nil) ⇒ Object
18 19 20 21 22 |
# File 'lib/vpm/commands/setup.rb', line 18 def call(args = nil) install_pathogen unless pathogen_installed? create_vpmrc inject_vimrc unless vimrc_setup? end |