Sha256: c5453d783c0ccb5198289dd13e3f5cfe6e0f6b3ae6cd916f8c83b8445c838422

Contents?: true

Size: 601 Bytes

Versions: 6

Compression:

Stored size: 601 Bytes

Contents

module DevFlow
  class Ur < App

    def process!
      error "Not on 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 .`
      `git commit -am 'update roadmap'`
      info "Push your change to the remote server"
      `git push #{@config["git_remote"]} develop` if @config["git_remote"]
    end

  end # class
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_flow-0.2.4 lib/dev_flow/commands/ur.rb
dev_flow-0.2.3 lib/dev_flow/commands/ur.rb
dev_flow-0.2.2 lib/dev_flow/commands/ur.rb
dev_flow-0.2.1 lib/dev_flow/commands/ur.rb
dev_flow-0.2.0 lib/dev_flow/commands/ur.rb
dev_flow-0.1.6 lib/dev_flow/commands/ur.rb