README.md in scmd-1.1.0 vs README.md in scmd-2.0.0
- old
+ new
@@ -22,16 +22,16 @@
```ruby
cmd = Scmd.new("echo hi")
cmd.to_s #=> "echo hi"
-cmd.inspect #=> #<Scmd::Command:0x83220514 @cmd_str="echo hi" @exitcode=nil>
+cmd.inspect #=> #<Scmd::Command:0x83220514 @cmd_str="echo hi" @exitstatus=nil>
-cmd.pid #=> nil
-cmd.exitcode #=> nil
-cmd.stdout #=> ''
-cmd.stderr #=> ''
+cmd.pid #=> nil
+cmd.exitstatus #=> nil
+cmd.stdout #=> ''
+cmd.stderr #=> ''
```
Run it:
```ruby
@@ -40,13 +40,13 @@
Results:
```ruby
# written to the cmd instance
-cmd.pid #=> 12345
-cmd.exitcode #=> 0
-cmd.stdout #=> 'hi'
-cmd.stderr #=> ''
+cmd.pid #=> 12345
+cmd.exitstatus #=> 0
+cmd.stdout #=> 'hi'
+cmd.stderr #=> ''
# the cmd instance is returned by `run` for chaining as well
cmd.run.stdout #=> 'hi'
```