Sha256: 218955c4f4b9a8c95791e34d7aecdfeeef6002bb370b898bf7bc0cd9e07997c9

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

require 'rgitflow/printing'
require 'git'

module RGitFlow
  class Install
    include RGitFlow::Printing

    class << self
      attr_accessor :instance

      def install_tasks(opts = {})
        new(opts[:dir]).install
      end
    end

    attr_reader :dir, :git

    def initialize(dir = nil)
      @dir = dir || Dir.pwd
      @git = Git.open @dir
    end

    def install
      require 'rgitflow/tasks/scm/status'
      RGitFlow::Tasks::SCM::Status.new @git

      require 'rgitflow/tasks/feature/tasks'
      RGitFlow::Tasks::Feature.install_tasks({:git => @git})

      require 'rgitflow/tasks/hotfix/tasks'
      RGitFlow::Tasks::Hotfix.install_tasks({:git => @git})

      require 'rgitflow/tasks/release/tasks'
      RGitFlow::Tasks::Release.install_tasks({:git => @git})
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rgitflow-0.2.0.pre.alpha.pre.21 lib/rgitflow/install.rb
rgitflow-0.2.0.pre.alpha.pre.20 lib/rgitflow/install.rb
rgitflow-0.1.0 lib/rgitflow/install.rb
rgitflow-0.1.0.pre.alpha.pre.18 lib/rgitflow/install.rb
rgitflow-0.1.0.pre.alpha.pre.17 lib/rgitflow/install.rb