Cucumber ruby tests using Appium.app

I’m a bit confused about running the appium server using the appium.app as opposed to from the command line in the context of a cucumber / ruby test.

E.g. if i copy/paste the boilerplate code from inspector into a Cucumber step definition file it has
require ‘rubygems’
require ‘appium_lib’
capabilities = {
‘appium-version’=>‘1.0’,
‘platformName’=>‘iOS’,
‘platformVersion’=>‘7.1.1’,
}
server_url = “http://0.0.0.0:4723/wd/hub
Appium::Driver.new(caps: capabilities).start_driver
Appium.promote_appium_methods Object

So that meant i had to install Ruby Gems and the Appium lib - but I’d already installed the Appium.app and the Ruby client, can i not just run the tests using cucumber but calling the Appium.app or something???

Grateful for any help

I recommend reading the appium bootcamp series. Also review the cucumber examples.