Sha256: 387c55dade11bdef7192aadf973b881af1ea233223e142bfe849b683647aa4c8

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 Bytes

Contents

## pushpop-file

A Pushpop plugin for reading file contents.

### Installation

Add the `pushpop-file` gem to your Gemfile:

``` ruby
gem 'pushpop-file'
```

or install it:

``` shell
$ gem install pushpop-file
```

### Usage

Here's a simple job that reads a `usernames.txt` file and prints each line:

``` ruby
require 'pushpop-file'

job do

  # emit the file contents as an array of lines
  file do
    path 'usernames.txt'
  end

  # print each line to show the output
  step 'print each line' do |last_response|
    last_response.each do |line|
      puts line
    end
  end

end
```

### Contributing

Code and documentation issues and pull requests are welcome. Help us make this template as
useful as possible!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pushpop-file-0.1.0 README.md