Sha256: ec73a7124b91eca22935839c4915e092f7db550473fec82d1d30531c81798e5a

Contents?: true

Size: 570 Bytes

Versions: 33

Compression:

Stored size: 570 Bytes

Contents

module Fulmar
  module Domain
    module Service
      module Helper
        # Provides access helper to the database service from within a task
        module VhostHelper
          def vhost_name
            branch = git.current_branch
            match = branch.match(/f\d+_([a-zA-Z0-9\_\-]+)/)
            if match
              match[1]
            else
              error "Cannot deploy branch '#{branch}'"
              fail 'Branch must match specification for feature branches (f1234_name)'
            end
          end
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
fulmar-1.10.1 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.10.0 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.9.2 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.9.1 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.9.0 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.15 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.14 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.13 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.12 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.11 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.10 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.9 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.8 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.7 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.6 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.5 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.4 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.3 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.2 lib/fulmar/domain/service/helper/vhost_helper.rb
fulmar-1.8.1 lib/fulmar/domain/service/helper/vhost_helper.rb