Sha256: f2b63ddcfe5cfd1e2fb4b96c794871fee4e2c71f05f4e57612e604b931205aeb

Contents?: true

Size: 853 Bytes

Versions: 2

Compression:

Stored size: 853 Bytes

Contents

include:
  - lang.ruby

tmp_railsapp_gems:
  file.directory:
    - name: /tmp/railsapp_gems
    - file_mode: 755
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - makedirs: True
    - clean: True

railsapp_gems:
  file.recurse:
    - source: salt://files/
    - name: /tmp/railsapp_gems
    - file_mode: 644
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - require:
      - file.directory: tmp_railsapp_gems
  cmd.run:
    # Run twice if first fails (weirdness with installing ruby-debug)
    - name: {{ pillar['homedir'] }}/.rbenv/shims/bundle install || {{ pillar['homedir'] }}/.rbenv/shims/bundle install
    - cwd: /tmp/railsapp_gems
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - require:
      - file: railsapp_gems
      - gem.installed: base_gems

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salted-rails-0.0.6 salt/railsapp/gems.sls
salted-rails-0.0.5 salt/railsapp/gems.sls