lib/stairs/steps/facebook.rb in stairs-0.5.0 vs lib/stairs/steps/facebook.rb in stairs-0.5.1
- old
+ new
@@ -3,11 +3,21 @@
class Facebook < Stairs::Step
title "Facebook App"
description "Configure credentials for Facebook app"
def run
- env "FACEBOOK_ID", provide("Facebook App ID")
- env "FACEBOOK_SECRET", provide("Facebook App Secret")
+ env id_name, provide("Facebook App ID")
+ env secret_name, provide("Facebook App Secret")
+ end
+
+ private
+
+ def id_name
+ options[:app_id] || "FACEBOOK_ID"
+ end
+
+ def secret_name
+ options[:app_secret] || "FACEBOOK_SECRET"
end
end
end
end