Sha256: efa3c607fae79751f5f8e670df46c73e3806cd7a18c3458d661dbd384169ca25

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

# 
# ruby deps
# 

rbenv-deps:
  pkg.installed:
    - pkgs:
      - autoconf 
      - automake
      - bison
      - build-essential
      - curl 
      - git
      - libc6-dev
      - libcurl4-openssl-dev
      - libfreeimage3
      - libfreeimage-dev
      - libmysqlclient-dev 
      - libncurses5-dev
      - libreadline-dev
      - libsqlite3-0
      - libsqlite3-dev
      - sqlite3
      - libssl-dev 
      - libtool
      - libxml2-dev 
      - libxslt1-dev 
      - libyaml-dev
      - openssl
      - python-software-properties 
      - subversion
      - zlib1g
      - zlib1g-dev 

ruby:
  rbenv.installed:
    - name: {{ pillar['ruby_version'] }}
    - default: True
    - runas: {{ pillar['username'] }}
    - require:
      - pkg: rbenv-deps

rbenv-adjust_profile:
  file.append:
    - name: {{ pillar['homedir'] }}/.profile
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - text:
      - export PATH="$HOME/.rbenv/bin:$PATH"
      - eval "$(rbenv init -)"
    - require:
      - rbenv.installed: ruby

base_gems:
  gem.installed:
    - runas: {{ pillar['username'] }}
    - names:
      - bundler
    - require:
      - file: rbenv-adjust_profile

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salted-rails-0.0.6 salt/lang/ruby.sls
salted-rails-0.0.5 salt/lang/ruby.sls