Allow for custom bash-it plugins in other cookbooks #184

Merged
merged 2 commits into from Jan 18, 2013

Conversation

Projects
None yet
2 participants
Contributor

roderik commented Jan 5, 2013

I believe this is a fix for #175

Contributor

roderik commented Jan 5, 2013

For reference, the bash-it.rb attributes file in roderik_workstation contains:

node.override['bash_it'] ={
  'enabled_plugins' => {
    'aliases'    => %w[general],
    'completion' => %w[defaults git brew gem rake ssh],
    'plugins'    => %w[base git rvm ssh vagrant ]
  },
  'custom_plugins' => {
      "pivotal_workstation" => %w[bash_it/custom/ensure_usr_local_bin_first.bash],
      "roderik_workstation" => %w[
        bash_it/custom/aliases.bash
        bash_it/custom/base.bash
        bash_it/custom/exports.bash
        bash_it/custom/functions.bash
      ]
  },
  'theme' => 'roderik',
  'dir' => '/etc/bash_it',
  'repository' => 'https://github.com/roderik/bash-it.git'
}

if node["platform"] == "ubuntu"
    node.override["bash_it"]["bashrc_path"]="/etc/bash.bashrc"
else
    node.override["bash_it"]["bashrc_path"]="/etc/bashrc"
end
Member

cunnie commented Jan 18, 2013

Thanks again, Roderik.

--Brian & Doc

cunnie added a commit that referenced this pull request Jan 18, 2013

Merge pull request #184 from roderik/improvement/allow_custom_bashit_…
…from_other_cookbook

Allow for custom bash-it plugins in other cookbooks

@cunnie cunnie merged commit 35abfc8 into pivotal:master Jan 18, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment