Sha256: cc872d116e2ee840388bb63a0daf0152a48e6f3e6516d9d9dc40ca00ce6800ed

Contents?: true

Size: 709 Bytes

Versions: 14

Compression:

Stored size: 709 Bytes

Contents

module DevFlow
  class Ur < App

    def process!
      error "Not on the develop trunk" unless @git.current_branch == 'develop'
      error "Only leader/moderator and supervisor can edit ROADMAP" unless i_have_power?

      #p @git.modified_files
      error "No change detected on #{@config[:roadmap]}" unless @git.modified_files.include? File.expand_path(@config[:roadmap])

      `git add ROADMAP`
      msg = ARGV[1] || 'update roadmap'
      `git commit -am '#{msg}'`
      if sync?
        info "Push your change to the remote server"
        `git push #{@config["git_remote"]} develop` 
      else
        warn "Offline update for ROADMAP."
      end
    end

  end # class
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dev_flow-0.6.2 lib/dev_flow/commands/ur.rb
dev_flow-0.6.1 lib/dev_flow/commands/ur.rb
dev_flow-0.6.0 lib/dev_flow/commands/ur.rb
dev_flow-0.5.5 lib/dev_flow/commands/ur.rb
dev_flow-0.5.4 lib/dev_flow/commands/ur.rb
dev_flow-0.5.3 lib/dev_flow/commands/ur.rb
dev_flow-0.5.2 lib/dev_flow/commands/ur.rb
dev_flow-0.5.1 lib/dev_flow/commands/ur.rb
dev_flow-0.5.0 lib/dev_flow/commands/ur.rb
dev_flow-0.4.2 lib/dev_flow/commands/ur.rb
dev_flow-0.4.1 lib/dev_flow/commands/ur.rb
dev_flow-0.4.0 lib/dev_flow/commands/ur.rb
dev_flow-0.3.1 lib/dev_flow/commands/ur.rb
dev_flow-0.3.0 lib/dev_flow/commands/ur.rb