(command.CommandList
  children: [
    (C {(set)} {(-e)})
    (C {(cd)} 
      {
        (DQ 
          (word_part.CommandSubPart
            command_list: 
              (command.CommandList
                children: [(C {(dirname)} {(DQ ($ VSub_Number '$0'))})]
              )
            left_token: <Left_CommandSub '$('>
            spids: [19 25]
          ) (/..)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.AndOr
                  ops: [Op_DAmp]
                  children: [
                    (C {(Lit_Other '[')} {(-f)} {(DQ (Brewfile))} {(Lit_Other ']')})
                    (C {(Lit_Other '[')} 
                      {
                        (DQ 
                          (word_part.CommandSubPart
                            command_list: (command.CommandList children:[(C {(uname)} {(-s)})])
                            left_token: <Left_CommandSub '$('>
                            spids: [47 51]
                          )
                        )
                      } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                    )
                  ]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.SimpleCommand
                  words: [{(brew)} {(bundle)} {(check)}]
                  redirects: [
                    (redir.Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {(/dev/null)}
                    )
                    (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})
                  ]
                )
                (command.BraceGroup
                  children: [
                    (C {(echo)} {(DQ ('==> Installing Homebrew dependencies\xe2\x80\xa6'))})
                    (C {(brew)} {(bundle)})
                  ]
                  spids: [80]
                )
              ]
            )
          ]
          spids: [16777215 63]
        )
      ]
      spids: [16777215 97]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.AndOr
                  ops: [Op_DAmp]
                  children: [
                    (C {(Lit_Other '[')} {(-f)} {(DQ (.ruby-version))} {(Lit_Other ']')})
                    (C {(Lit_Other '[')} {(-z)} 
                      {
                        (DQ 
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (command.SimpleCommand
                                    words: [{(rbenv)} {(version-name)}]
                                    redirects: [
                                      (redir.Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [119 126]
                          )
                        )
                      } {(Lit_Other ']')}
                    )
                  ]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ ('==> Installing Ruby\xe2\x80\xa6'))})
            (C {(rbenv)} {(install)} {(--skip-existing)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.SimpleCommand
                  words: [{(which)} {(bundle)}]
                  redirects: [
                    (redir.Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {(/dev/null)}
                    )
                    (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})
                  ]
                )
                (command.BraceGroup
                  children: [(C {(gem)} {(install)} {(bundler)}) (C {(rbenv)} {(rehash)})]
                  spids: [161]
                )
              ]
            )
          ]
          spids: [16777215 132]
        )
      ]
      spids: [16777215 178]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(Lit_Other '[')} {(-f)} {(DQ (Gemfile))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ ('==> Installing gem dependencies\xe2\x80\xa6'))})
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.SimpleCommand
                  words: [{(bundle)} {(check)} {(--path)} {(vendor/gems)}]
                  redirects: [
                    (redir.Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {(/dev/null)}
                    )
                    (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})
                  ]
                )
                (command.BraceGroup
                  children: [
                    (C {(bundle)} {(install)} {(--path)} {(vendor/gems)} {(--quiet)} {(--without)} 
                      {(production)}
                    )
                  ]
                  spids: [220]
                )
              ]
            )
          ]
          spids: [16777215 194]
        )
      ]
      spids: [16777215 240]
    )
  ]
)